2024-04-01 21:13:59 +00:00
services :
web :
2024-08-24 16:22:03 -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-08-18 12:04:46 -04:00
- PUBLIC_SERVER_URL=http://server:8000 # MOST DOCKER USERS WILL NEVER NEED TO CHANGE THIS, EVEN IF YOU CHANGE THE PORTS
2024-07-12 09:20:55 -04:00
- ORIGIN=http://localhost:8080
2024-08-18 12:04:46 -04:00
- BODY_SIZE_LIMIT=Infinity # This is measured in bytes
2024-07-08 11:44:39 -04:00
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-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-08-24 16:22:03 -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-09-15 11:10:34 -04:00
- PGPASSWORD=changeme123 # This should be the same as the POSTGRES_PASSWORD in the db service
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-09-15 11:10:34 -04:00
- PUBLIC_URL='http://localhost:81' # NOTE : THIS IS THE PUBLIC URL TO THE **NGINX** SERVER USED FOR MEDIA FILES!
- CSRF_TRUSTED_ORIGINS=https://api.adventurelog.app,https://adventurelog.app # This is a comma separated list of trusted origins for CSRF, this should include where your frontend is hosted.
2024-07-09 10:10:22 -04:00
- DEBUG=False
2024-09-15 11:10:34 -04:00
- FRONTEND_URL='http://localhost:8080' # This is the URL of the frontend server
#- DISABLE_REGISTRATION=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
2024-08-24 16:29:50 -04:00
container_name : adventurelog-nginx
2024-09-15 11:10:34 -04:00
restart : unless-stopped
2024-07-09 09:11:16 -04:00
ports :
2024-08-16 12:21:43 -04:00
- "81:80"
2024-07-09 09:11:16 -04:00
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 :