2024-07-08 11:44:39 -04:00
|
|
|
version: "3.9"
|
|
|
|
|
2024-04-01 21:13:59 +00:00
|
|
|
services:
|
|
|
|
web:
|
2024-07-09 08:41:15 -04:00
|
|
|
# build: ./frontend/
|
|
|
|
image: ghcr.io/seanmorley15/adventurelog-frontend:latest
|
2024-04-02 14:41:07 +00:00
|
|
|
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"
|
2024-04-02 19:22:54 +00:00
|
|
|
depends_on:
|
2024-07-08 11:44:39 -04:00
|
|
|
- server
|
|
|
|
|
2024-04-02 19:22:54 +00:00
|
|
|
db:
|
2024-07-08 11:44:39 -04:00
|
|
|
image: postgres:latest
|
2024-04-02 19:22:54 +00:00
|
|
|
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'
|
2024-07-09 08:41:15 -04:00
|
|
|
- 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
|