Skip to content

Instantly share code, notes, and snippets.

@marinho
Created August 31, 2025 09:02
Show Gist options
  • Save marinho/58dfed44e93bcd33fea27a4211e9a8db to your computer and use it in GitHub Desktop.
Save marinho/58dfed44e93bcd33fea27a4211e9a8db to your computer and use it in GitHub Desktop.
AdventureLog Configuration
# 🌐 Frontend
PUBLIC_SERVER_URL=http://server:8000
ORIGIN=http://adventurelog-frontend:3000
BODY_SIZE_LIMIT=Infinity
FRONTEND_PORT=3000
# 🐘 PostgreSQL Database
PGHOST=main-postgres
POSTGRES_DB=adventurelog
POSTGRES_USER=adventurelog
POSTGRES_PASSWORD=abc123
# πŸ”’ Django Backend
SECRET_KEY=abc123
DJANGO_ADMIN_USERNAME=admin
DJANGO_ADMIN_PASSWORD=abc123
[email protected]
PUBLIC_URL=https://trips.my-domain.com
CSRF_TRUSTED_ORIGINS=http://adventurelog-frontend:3000,http://adventurelog-backend:80,https://trips.my-domain.com,https://trips-be.my-domain.com
DEBUG=False
FRONTEND_URL=http://adventurelog-frontend:3000
BACKEND_PORT=80
DISABLE_REGISTRATION=False
APP_PATH=/srv/adventurelog
services:
web:
#build: ./frontend/
image: ghcr.io/seanmorley15/adventurelog-frontend:latest
container_name: adventurelog-frontend
restart: unless-stopped
env_file: .env
depends_on:
- server
networks:
- common-network
server:
#build: ./backend/
image: ghcr.io/seanmorley15/adventurelog-backend:latest
container_name: adventurelog-backend
restart: unless-stopped
env_file: .env
volumes:
- ${APP_PATH}/media:/code/media/
networks:
- common-network
networks:
common-network:
external: true
server {
if ($host = trips-be.my-domain.com) {
return 301 https://$host$request_uri;
}
listen 80;
server_name trips-be.my-domain.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name trips-be.my-domain.com;
include /etc/nginx/conf.d/includes/common.conf;
location / {
proxy_pass http://adventurelog-backend:80;
}
}
server {
if ($host = trips.my-domain.com) {
return 301 https://$host$request_uri;
}
listen 80;
server_name trips.my-domain.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name trips.my-domain.com;
include /etc/nginx/conf.d/includes/common.conf;
location / {
proxy_pass http://adventurelog-frontend:3000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment