2022-11-08 20:05:51 -08:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:15-alpine
|
|
|
|
healthcheck:
|
|
|
|
test: ['CMD', 'pg_isready', '-U', 'postgres']
|
|
|
|
volumes:
|
|
|
|
- dbdata:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- internal_network
|
|
|
|
restart: always
|
|
|
|
environment:
|
2022-11-19 20:53:38 -08:00
|
|
|
- "POSTGRES_DB=takahe"
|
2022-11-08 20:05:51 -08:00
|
|
|
- "POSTGRES_USER=postgres"
|
|
|
|
- "POSTGRES_PASSWORD=insecure_password"
|
|
|
|
|
|
|
|
web:
|
|
|
|
build: .
|
2022-11-19 20:53:38 -08:00
|
|
|
image: takahe:latest
|
2022-11-08 20:05:51 -08:00
|
|
|
environment:
|
2022-11-12 21:10:06 -08:00
|
|
|
- "DJANGO_SETTINGS_MODULE=takahe.settings.production"
|
2022-11-19 20:53:38 -08:00
|
|
|
- "PGHOST=db"
|
|
|
|
- "PGDATABASE=takahe"
|
|
|
|
- "PGUSER=postgres"
|
|
|
|
- "PGPASSWORD=insecure_password"
|
|
|
|
- "TAKAHE_SECRET_KEY=insecure_secret"
|
|
|
|
- "TAKAHE_MAIN_DOMAIN=example.com"
|
|
|
|
- "TAKAHE_EMAIL_CONSOLE_ONLY=True"
|
|
|
|
- "TAKAHE_MEDIA_BACKEND=local"
|
|
|
|
- "TAKAHE_AUTO_ADMIN_EMAIL=admin@example.com"
|
2022-11-08 20:05:51 -08:00
|
|
|
networks:
|
|
|
|
- external_network
|
|
|
|
- internal_network
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
2022-11-20 10:17:09 -08:00
|
|
|
volumes:
|
|
|
|
- ../:/takahe/
|
2022-11-08 20:05:51 -08:00
|
|
|
|
|
|
|
networks:
|
|
|
|
internal_network:
|
|
|
|
external_network:
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
dbdata:
|