Spaces:
Sleeping
Sleeping
File size: 631 Bytes
dbca1c6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | version: '3.8'
services:
web:
build: .
restart: always
ports:
- "8000:8000"
env_file:
- .env
entrypoint: ["/app/docker-entrypoint.sh"]
depends_on:
- db
db:
image: postgres:15
restart: always
environment:
POSTGRES_DB: faceapp
POSTGRES_USER: faceapp
POSTGRES_PASSWORD: changeme
volumes:
- db_data:/var/lib/postgresql/data
nginx:
image: nginx:stable
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./deploy/nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- web
volumes:
db_data:
|