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

55 lines
895 B
YAML

version: '3.6'
services:
web:
build:
context: ./services/web
dockerfile: Dockerfile
expose:
- 5000
environment:
- FLASK_ENV=production
- APP_SETTINGS=project.config.ProductionConfig
- DB_USER=postgres
- DB_PASSWORD=postgres
- SECRET_CODE=myprecious
depends_on:
- db
networks:
- app
db:
build:
context: ./services/db
dockerfile: Dockerfile
volumes:
- data-volume:/var/lib/postgresql/data
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
networks:
- app
nginx:
build:
context: ./services/nginx
dockerfile: Dockerfile
restart: always
ports:
- 80:80
depends_on:
- web
networks:
- app
networks:
app:
driver: bridge
volumes:
data-volume:
driver: local