2023-05-03 18:21:28 +00:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
comfy:
|
|
|
|
build:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
context: ./
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
volumes:
|
|
|
|
- ./:/app
|
2023-05-16 18:03:55 +00:00
|
|
|
environment:
|
|
|
|
- SECRET_KEY
|
|
|
|
- DATABASE_URL
|
|
|
|
- DJANGO_SETTINGS_MODULE
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
|
2023-05-03 18:21:28 +00:00
|
|
|
db:
|
|
|
|
image: postgres
|
|
|
|
restart: always
|
|
|
|
environment:
|
2023-05-16 18:03:55 +00:00
|
|
|
- POSTGRES_ROOT_PASSWORD
|
|
|
|
- POSTGRES_USER
|
|
|
|
- POSTGRES_PASSWORD
|
|
|
|
- POSTGRES_DB
|
2023-05-03 18:21:28 +00:00
|
|
|
volumes:
|
|
|
|
- ../postgres/:/var/lib/postgresql
|
2023-05-16 18:03:55 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|