Run the following comands in three different terminals
docker-compose up --build
docker-compose exec web celery -A DevOpsTool worker -l info
docker-compose exec web celery flower -A DevOpsTool -l debug
Keep .env.prod
out of version control for a real-world scenario.
If DEVOPS_TOOL_WEB_VERSION
and DEVOPS_TOOL_NGINX_VERSION
are not defined,
latest
will be used.
export DEVOPS_TOOL_WEB_VERSION=0.0.1
export DEVOPS_TOOL_NGINX_VERSION=0.0.1
docker-compose -f docker-compose.prod.yml build
Pushes service images to Docker Hub
docker-compose -f docker-compose.prod.yml push
docker-compose -f docker-compose.prod.yml up -d