mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-18 20:39:36 +02:00
32 lines
600 B
YAML
32 lines
600 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
db:
|
|
image: postgres:latest
|
|
environment:
|
|
POSTGRES_DB: database
|
|
POSTGRES_USER: adventure
|
|
POSTGRES_PASSWORD: changeme123
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
|
|
web:
|
|
build: .
|
|
environment:
|
|
- PGHOST=db
|
|
- PGDATABASE=database
|
|
- PGUSER=adventure
|
|
- PGPASSWORD=changeme123
|
|
- SECRET_KEY=changeme123
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- adventurelog_media:/code/media/
|
|
|
|
volumes:
|
|
postgres_data:
|
|
driver: local
|
|
adventurelog_media:
|
|
driver: local
|