-
Notifications
You must be signed in to change notification settings - Fork 0
Production management commands for docker
marsofjkic edited this page Jun 27, 2023
·
2 revisions
Some management tools for production/beta environments using docker-compose.
If you are using them in a staging or beta environment you can use docker-compose.beta.yml instead of docker-compose.prod.yml.
# To deploy
cd /opt/poker-game
git pull origin <your-branch>
# Restarting the platform
supctl stop poker-game
supctl start poker-game
# or
supctl restart poker-game
# Checking the services status
cd /opt/poker-game
docker-compose -f docker-compose.prod.yml ps
# Checking if a cloudflare domain is working
docker-compose -f docker-compose.prod.yml logs cloudflare
# It should show something like:
# Route propagating, it may take up to 1 minute for your new route to become functional
# Using shell plus
docker-compose -f docker-compose.prod.yml run --rm django oddslingers-server shell
# Using commands
docker-compose -f docker-compose.prod.yml run --rm django oddslingers-server manage <command>
# Using pdb, later ctrl p ctrl q to quit
docker attach oddslingerspoker_django_1