Add Docker Compose configuration and environment sample for AdventureLog
This commit is contained in:
58
komodo/general-purpose/adventure-log/.env.sample
Normal file
58
komodo/general-purpose/adventure-log/.env.sample
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
# 🌐 Frontend
|
||||||
|
PUBLIC_SERVER_URL=http://server:8000 # PLEASE DON'T CHANGE :) - Should be the service name of the backend with port 8000, even if you change the port in the backend service. Only change if you are using a custom more complex setup.
|
||||||
|
ORIGIN=http://localhost:8015
|
||||||
|
BODY_SIZE_LIMIT=Infinity
|
||||||
|
FRONTEND_PORT=8015
|
||||||
|
|
||||||
|
# 🐘 PostgreSQL Database
|
||||||
|
PGHOST=db
|
||||||
|
POSTGRES_DB=database
|
||||||
|
POSTGRES_USER=adventure
|
||||||
|
POSTGRES_PASSWORD=changeme123
|
||||||
|
|
||||||
|
# 🔒 Django Backend
|
||||||
|
SECRET_KEY=changeme123
|
||||||
|
DJANGO_ADMIN_USERNAME=admin
|
||||||
|
DJANGO_ADMIN_PASSWORD=admin
|
||||||
|
DJANGO_ADMIN_EMAIL=admin@example.com
|
||||||
|
PUBLIC_URL=http://localhost:8016 # Match the outward port, used for the creation of image urls
|
||||||
|
CSRF_TRUSTED_ORIGINS=http://localhost:8016,http://localhost:8015
|
||||||
|
DEBUG=False
|
||||||
|
FRONTEND_URL=http://localhost:8015 # Used for email generation. This should be the url of the frontend
|
||||||
|
BACKEND_PORT=8016
|
||||||
|
|
||||||
|
# Optional: use Google Maps integration
|
||||||
|
# https://adventurelog.app/docs/configuration/google_maps_integration.html
|
||||||
|
# GOOGLE_MAPS_API_KEY=your_google_maps_api_key
|
||||||
|
|
||||||
|
# Optional: disable registration
|
||||||
|
# https://adventurelog.app/docs/configuration/disable_registration.html
|
||||||
|
DISABLE_REGISTRATION=False
|
||||||
|
# DISABLE_REGISTRATION_MESSAGE=Registration is disabled for this instance of AdventureLog.
|
||||||
|
|
||||||
|
# SOCIALACCOUNT_ALLOW_SIGNUP=False # When false, social providers cannot be used to create new user accounts when registration is disabled.
|
||||||
|
|
||||||
|
# FORCE_SOCIALACCOUNT_LOGIN=False # When true, only social login is allowed (no password login) and the login page will show only social providers or redirect directly to the first provider if only one is configured.
|
||||||
|
|
||||||
|
# ACCOUNT_EMAIL_VERIFICATION='none' # 'none', 'optional', 'mandatory' # You can change this as needed for your environment
|
||||||
|
|
||||||
|
# Optional: Use email
|
||||||
|
# https://adventurelog.app/docs/configuration/email.html
|
||||||
|
# EMAIL_BACKEND=email
|
||||||
|
# EMAIL_HOST=smtp.gmail.com
|
||||||
|
# EMAIL_USE_TLS=True
|
||||||
|
# EMAIL_PORT=587
|
||||||
|
# EMAIL_USE_SSL=False
|
||||||
|
# EMAIL_HOST_USER=user
|
||||||
|
# EMAIL_HOST_PASSWORD=password
|
||||||
|
# DEFAULT_FROM_EMAIL=user@example.com
|
||||||
|
|
||||||
|
# Optional: Use Strava integration
|
||||||
|
# https://adventurelog.app/docs/configuration/strava_integration.html
|
||||||
|
# STRAVA_CLIENT_ID=your_strava_client_id
|
||||||
|
# STRAVA_CLIENT_SECRET=your_strava_client_secret
|
||||||
|
|
||||||
|
# Optional: Use Umami for analytics
|
||||||
|
# https://adventurelog.app/docs/configuration/analytics.html
|
||||||
|
# PUBLIC_UMAMI_SRC=https://cloud.umami.is/script.js # If you are using the hosted version of Umami
|
||||||
|
# PUBLIC_UMAMI_WEBSITE_ID=
|
||||||
36
komodo/general-purpose/adventure-log/compose.yaml
Normal file
36
komodo/general-purpose/adventure-log/compose.yaml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
services:
|
||||||
|
web:
|
||||||
|
#build: ./frontend/
|
||||||
|
image: ghcr.io/seanmorley15/adventurelog-frontend:latest
|
||||||
|
container_name: adventurelog-frontend
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file: .env
|
||||||
|
ports:
|
||||||
|
- "${FRONTEND_PORT:-8015}:3000"
|
||||||
|
depends_on:
|
||||||
|
- server
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgis/postgis:16-3.5
|
||||||
|
container_name: adventurelog-db
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file: .env
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data/
|
||||||
|
|
||||||
|
server:
|
||||||
|
#build: ./backend/
|
||||||
|
image: ghcr.io/seanmorley15/adventurelog-backend:latest
|
||||||
|
container_name: adventurelog-backend
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file: .env
|
||||||
|
ports:
|
||||||
|
- "${BACKEND_PORT:-8016}:80"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
volumes:
|
||||||
|
- adventurelog_media:/code/media/
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
||||||
|
adventurelog_media:
|
||||||
Reference in New Issue
Block a user