How to run - Miol-Mor/battle-game GitHub Wiki
WARNIG: all commands should be run from project's root directory
To run the application in docker you have to build it first:
docker-compose build
Now you can run everything from root folder with just one command:
docker-compose up
Note that backend runs with RUST_LOG=debug
by default. You can change it by adding environment variable to run command:
RUST_LOG=warn docker-compose up
You also can build and run every application separately like this:
docker-compose build frontend
docker-compose up frontend
You can run service or services in the background using -d
option:
docker-compose up -d
And also stop them both or one of them using
docker-compose stop frontend
And finally, you can connect to logs of each docker using
docker-compose logs -f
docker-compose logs -f backend