-
Notifications
You must be signed in to change notification settings - Fork 19
Production management commands for docker
Angel Rey edited this page Dec 23, 2020
·
1 revision
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/oddslingers.poker
git pull origin <your-branch>
# Restarting the platform
supctl stop oddslingers.poker
supctl start oddslingers.poker
# or
supctl restart oddslingers.poker
# Checking the services status
cd /opt/oddslingers.poker
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