We use a YAML file located in each of the Cardano-wallet and cardano-rest repositories which allows us to configure all running application’s services. Then, with a single command, we can create and start all the services from the configuration.
The following commands start and stop docker-compose running against the respective environment:
NETWORK=mainnet docker-compose up
NETWORK=testnet docker-compose down
Please note the YAML files provided in each repository cardano-wallet and cardano-rest are only sample files and should be treated as such. Exchanges and third-party wallets wishing to utilize this server should tailor these files to suit the local production environment.
In order to get started with docker-compose and start building cardano-wallet and cardano-rest you will need to install docker then install docker-compose. Please see online docker-compose documentation or visits docker-compose releases GitHub page and run a similar command with specified version:
curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
We can offer the following best practices for your review: