BigCapital
Steps to deploy Bigcapital using docker-compose
- Download the required files.
In a directory of your choosing, clone the Bigcapital repository and navigate into the ./bigcapital
directory by entering the following commands:
git clone --depth 1 -b main https://github.com/bigcapitalhq/bigcapital.git && cd ./bigcapital
The most important files in the docker deployment the docker-compose.prod.yml
, .env.example
and docker
folder, we're not going to build docker images of the application from scratch, but docker-compose already imports built images from Github Registry where our continuous-deployment push the new built images when we release new versions.
- Configure the
.env
file.
Change all mail variables to configure it with your mail server and the password of databases.
cp .env.example .env && nano .env
For example, you can change :
BASE_URL=http://192.168.1.103:2465
PUBLIC_PROXY_PORT=2465
PUBLIC_PROXY_SSL_PORT=1443
2b. Configure docker-compose.prod.yml
Reflect your changes in .env
ports:
- '${PUBLIC_PROXY_PORT:-2465}:80'
- '${PUBLIC_PROXY_SSL_PORT:-1443}:443'
You can use bind mounts for data persistency.
docker-compose --file docker-compose.prod.yml up -d
The .env.example
file contains all the necessary environment variable values, allowing you to begin using the application directly with these pre-configured settings. You also have the option to modify the values as needed.
- Get the services up and running.
docker-compose --file docker-compose.prod.yml up -d