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

55 lines
1.7 KiB
YAML
Raw Normal View History

services:
web:
2024-10-25 22:57:10 -04:00
build: ./frontend/
#image: ghcr.io/seanmorley15/adventurelog-frontend:latest
2024-08-24 16:29:50 -04:00
container_name: adventurelog-frontend
2024-09-15 11:10:34 -04:00
restart: unless-stopped
environment:
2024-10-25 22:57:10 -04:00
- PUBLIC_SERVER_URL=http://server:8000 # MOST DOCKER USERS WILL NOT NEED TO CHANGE THIS EVER EVEN IF YOU CHANGE THE OUTWARD PORT
- ORIGIN=http://localhost:8015
- BODY_SIZE_LIMIT=Infinity
2024-07-08 11:44:39 -04:00
ports:
2024-10-25 22:57:10 -04:00
- "8015:3000"
depends_on:
2024-07-08 11:44:39 -04:00
- server
db:
2024-08-23 23:49:05 -04:00
image: postgis/postgis:15-3.3
2024-08-24 16:29:50 -04:00
container_name: adventurelog-db
2024-09-15 11:10:34 -04:00
restart: unless-stopped
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-10-25 22:57:10 -04:00
build: ./backend/
#image: ghcr.io/seanmorley15/adventurelog-backend:latest
2024-08-24 16:29:50 -04:00
container_name: adventurelog-backend
2024-09-15 11:10:34 -04:00
restart: unless-stopped
2024-07-08 11:44:39 -04:00
environment:
- PGHOST=db
- PGDATABASE=database
- PGUSER=adventure
2024-10-25 22:57:10 -04:00
- PGPASSWORD=changeme123
2024-07-08 11:44:39 -04:00
- SECRET_KEY=changeme123
- DJANGO_ADMIN_USERNAME=admin
- DJANGO_ADMIN_PASSWORD=admin
- DJANGO_ADMIN_EMAIL=admin@example.com
2024-10-25 22:57:10 -04:00
- PUBLIC_URL='http://localhost:8016' # Match the outward port, used for the creation of image urls
- CSRF_TRUSTED_ORIGINS=http://localhost:8016 # Comma separated list of trusted origins for CSRF
2024-07-09 10:10:22 -04:00
- DEBUG=False
2024-10-25 22:57:10 -04:00
- FRONTEND_URL='http://localhost:8015' # Used for email generation. This should be the url of the frontend
2024-06-09 18:10:17 +00:00
ports:
2024-10-25 22:57:10 -04:00
- "8016:80" # User can change this to any outward port without breaking the setup
2024-07-08 11:44:39 -04:00
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: