2024-04-01 21:13:59 +00:00
|
|
|
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
|
2024-04-02 14:41:07 +00:00
|
|
|
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"
|
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-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
|
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-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:
|