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

7 years ago
version: '3.6'
services:
web:
7 years ago
build:
context: ./services/web
dockerfile: Dockerfile
expose:
- 5000
7 years ago
environment:
- FLASK_ENV=production
7 years ago
- APP_SETTINGS=project.config.ProductionConfig
- DB_USER=postgres
- DB_PASSWORD=postgres
- SECRET_CODE=myprecious
7 years ago
depends_on:
- db
7 years ago
networks:
- app
7 years ago
db:
build:
7 years ago
context: ./services/db
7 years ago
dockerfile: Dockerfile
7 years ago
volumes:
- data-volume:/var/lib/postgresql/data
7 years ago
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
7 years ago
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