improve local docker run

This commit is contained in:
2023-05-08 14:40:11 -05:00
parent 96a75eb4bb
commit 5377fa4347
29 changed files with 25 additions and 544 deletions

View File

@@ -19,39 +19,22 @@ services:
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- "8000:8000"
command: /start
postgres:
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
image: benchcoach_production_postgres
image: benchcoach_local_postgres
container_name: benchcoach_local_postgres
ports:
- "5432:5432"
volumes:
- benchcoach_local_postgres_data:/var/lib/postgresql/data:Z
- benchcoach_local_postgres_data_backups:/backups:z
- benchcoach_local_postgres_data:/var/lib/postgresql/data
- benchcoach_local_postgres_data_backups:/backups
env_file:
- ./.envs/.local/.postgres
docs:
image: benchcoach_local_docs
container_name: benchcoach_local_docs
platform: linux/amd64
build:
context: .
dockerfile: ./compose/local/docs/Dockerfile
env_file:
- ./.envs/.local/.django
volumes:
- ./docs:/docs:z
- ./config:/app/config:z
- ./benchcoach:/app/benchcoach:z
ports:
- "9000:9000"
command: /start-docs
nginx-proxy:
image: jwilder/nginx-proxy:alpine
container_name: nginx-proxy
@@ -64,3 +47,5 @@ services:
restart: always
depends_on:
- django
env_file:
- ./.envs/.local/.nginx-proxy