1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-24 15:29:36 +02:00
AdventureLog/docker-compose.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

2024-07-08 11:44:39 -04:00
version: "3.9"
services:
web:
# build: ./frontend/
image: ghcr.io/seanmorley15/adventurelog-frontend:latest
environment:
2024-07-08 11:44:39 -04:00
- PUBLIC_SERVER_URL=http://server:8000
- ORIGIN=http://localhost:8080
- BODY_SIZE_LIMIT=Infinity
ports:
- "8080:3000"
depends_on:
2024-07-08 11:44:39 -04:00
- server
db:
2024-07-08 11:44:39 -04:00
image: postgres:latest
environment:
2024-07-08 11:44:39 -04:00
POSTGRES_DB: database
POSTGRES_USER: adventure
POSTGRES_PASSWORD: changeme123
2024-06-09 18:10:17 +00:00
volumes:
2024-07-08 11:44:39 -04:00
- postgres_data:/var/lib/postgresql/data/
server:
# build: ./backend/
image: ghcr.io/seanmorley15/adventurelog-backend:latest
2024-07-08 11:44:39 -04:00
environment:
- PGHOST=db
- PGDATABASE=database
- PGUSER=adventure
- PGPASSWORD=changeme123
- SECRET_KEY=changeme123
- DJANGO_ADMIN_USERNAME=admin
- DJANGO_ADMIN_PASSWORD=admin
- DJANGO_ADMIN_EMAIL=admin@example.com
- PUBLIC_URL='http://127.0.0.1:8000'
- DEBUG=True
2024-06-09 18:10:17 +00:00
ports:
2024-07-08 11:44:39 -04:00
- "8000:8000"
depends_on:
- db
volumes:
- adventurelog_media:/code/media/
2024-06-09 18:10:17 +00:00
volumes:
2024-07-08 11:44:39 -04:00
postgres_data:
adventurelog_media: