Spaces:
Sleeping
Sleeping
| 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: | |