The setup is not yet updated for PostgreSQL. Please open a PR if you have a
docker-compose.yml file that works for PostgreSQL.Using the docker image directly
A Chartbrew docker image is built whenever a new version is released. Before running the commands below, make sure you have a MySQL server already running and an empty database that Chartbrew can use. The database name should match the value of theCB_DB_NAME variable.
You will need a 32 bytes AES encryption key for the CB_ENCRYPTION_KEY variable. Run the following command to generate one:
Changing environment variables
If you change any of theVITE_APP_* variables after the first run, it’s important to build the client application again from inside the image. This is done by running the following command:
4019 port is used by the API and 4018 for the client app (UI). Feel free to map these to any other ports on your system (e.g 4523:4019).
CB_ENCRYPTION_KEYthis string will be used to encrypt passwords and tokens. Use a secure 32 bytes string. You can generate one here.CB_API_HOSTneeds to point to the home address of the system. Usually for a docker image this is0.0.0.0.CB_DB_HOSTis the host of your database and determines how the application can reach it.host.docker.internalis used when you want the container to connect to a service on your host such as a database running on your server already.CB_DB_PORTis the port number of your database.CB_DB_NAMEthe name of the database (make sure the database exists before running the image).CB_DB_USERNAMEandCB_DB_PASSWORDare used for authentication with the DB.CB_REDIS_HOST,CB_REDIS_PORT, andCB_REDIS_PASSWORDare used for the Redis queue.VITE_APP_CLIENT_HOSTis the address of the client application and is used by the client to be aware of its own address (not as important)VITE_APP_CLIENT_PORTThe port number where your client application will run from.VITE_APP_API_HOSTthis is used for the client application to know where to make the API requests. This is the address of the API (backend).
Using docker-compose
If you want to use docker-compose, you can use thedocker-compose.yml file from the root of the project as an example.
Go to the docker-compose.yml fileThe
docker-compose.yml file is using the .env file to set the environment variables. Ensure you have the file in the root of the project and complete it with the required values. You can copy the .env-template file and check the Environment variables section for more information.
Once you have the .env file, you can run the following command to start the application: