Note that you should use different clones of the bitcart-docker for each deployment, as the setup script creates .env file with all your settings, and .deploy file with configuration name, and if you run different deployments in the same directory the configuration files will be overwritten.
Do it like so:
gitclonehttps://github.com/bitcart/bitcart-dockercdbitcart-docker# export settings./setup.shcd..gitclonehttps://github.com/bitcart/bitcart-dockerbitcart-democdbitcart-demo# export settings./setup.sh--namedemocd..# do the same process for each deployment
To disable reverse proxy, run:
Note that when running multiple deployments, the Merchants API, the admin and the store will have the same ports. You need to change that.
To change ports, run export BITCART_SERVICE_PORT=port
Where SERVICE is the component name, and port is the port, for example:
You should configure nginx yourself. The only recommendation is: it is easy to configure nginx via certbot.
Instead of disabling nginx, you may also leave it running at different ports, see this guide.
Run:
And it will create nginx config records for you, and then edit the location / config, by using proxy_pass http://localhost:port
Note: when using multiple deployments on one server, environment variables may be loaded incorrectly on login (due to same environment variable names).
To ensure that you have loaded the correct environment for your deployment, in your deployment directory, run:
export BITCART_BACKEND_PORT=8001 # set merchants API port to 8001
export BITCART_ADMIN_PORT=4001 # admin panel at port 4001
export BITCART_STORE_PORT=3001 # store at port 3001