52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
version: '3'
|
|
|
|
volumes:
|
|
benchcoach_local_postgres_data: {}
|
|
benchcoach_local_postgres_data_backups: {}
|
|
|
|
services:
|
|
django:
|
|
build:
|
|
context: .
|
|
dockerfile: ./compose/local/django/Dockerfile
|
|
image: benchcoach_local_django
|
|
container_name: benchcoach_local_django
|
|
platform: linux/amd64
|
|
depends_on:
|
|
- postgres
|
|
volumes:
|
|
- .:/app:z
|
|
env_file:
|
|
- ./.envs/.local/.django
|
|
- ./.envs/.local/.postgres
|
|
command: /start
|
|
|
|
postgres:
|
|
build:
|
|
context: .
|
|
dockerfile: ./compose/production/postgres/Dockerfile
|
|
image: benchcoach_local_postgres
|
|
container_name: benchcoach_local_postgres
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- benchcoach_local_postgres_data:/var/lib/postgresql/data
|
|
- benchcoach_local_postgres_data_backups:/backups
|
|
env_file:
|
|
- ./.envs/.local/.postgres
|
|
|
|
nginx-proxy:
|
|
image: jwilder/nginx-proxy:alpine
|
|
container_name: nginx-proxy
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
- ./certs:/etc/nginx/certs
|
|
restart: always
|
|
depends_on:
|
|
- django
|
|
env_file:
|
|
- ./.envs/.local/.nginx-proxy
|