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

70 lines
1.6 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:
2024-07-09 09:58:52 -04:00
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-09 09:11:16 -04:00
- PUBLIC_URL='http://127.0.0.1:81'
- 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
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