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

71 lines
1.7 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
2024-07-12 09:20:55 -04:00
- ORIGIN=http://localhost:8080
2024-07-08 11:44:39 -04:00
- 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
2024-07-12 09:20:55 -04:00
- PUBLIC_URL='http://localhost:81'
2024-07-10 08:46:38 -04:00
- CSRF_TRUSTED_ORIGINS=https://api.adventurelog.app,https://adventurelog.app
2024-07-09 10:10:22 -04:00
- DEBUG=False
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
2024-07-09 09:11:16 -04:00
nginx:
image: nginx:latest
ports:
- "81:80" # Using port 81 to avoid conflict with your existing setup
volumes:
- adventurelog_media:/app/media
- ./proxy/nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- server
2024-06-09 18:10:17 +00:00
volumes:
2024-07-08 11:44:39 -04:00
postgres_data:
adventurelog_media:
2024-07-09 09:11:16 -04:00
#
# nginx:
# build:
# context: ./proxy/
# dockerfile: Dockerfile.nginx
# ports:
# - "81:80" # Using port 81 to avoid conflict with your existing setup
# volumes:
# - adventurelog_media:/app/media
# depends_on:
# - server