You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
651 B

version: '3.8'
services:
nginx:
build: ./services/nginx
volumes:
- static_volume:/home/app/web/project/static
ports:
- 1337:80
depends_on:
- web
web:
build:
context: ./services/web
dockerfile: Dockerfile.prod
command: gunicorn --bind 0.0.0.0:5000 manage:app
volumes:
- static_volume:/home/app/web/project/static
ports:
- 5000
env_file:
- ./.env.prod
depends_on:
- db
db:
image: postgres:13
volumes:
- postgres_data_prod:/var/lib/postgresql/data/
env_file:
- ./.env.prod.db
volumes:
postgres_data_prod:
static_volume: