added apps!
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
# AdventureLog - Utazási napló és kalandtervező
|
||||
# Domain: travel.${DOMAIN}
|
||||
# Database: postgres
|
||||
# RAM: ~100M (mem_limit: 384M) | Pi-compatible: Yes
|
||||
#
|
||||
# Environment variables:
|
||||
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
||||
# SECRET_KEY - Titkosítási kulcs (auto-generated)
|
||||
# DB_PASSWORD - Adatbázis jelszó (auto-generated)
|
||||
|
||||
services:
|
||||
adventurelog:
|
||||
image: ghcr.io/seanmorley15/adventurelog-backend:v0.12.0
|
||||
container_name: adventurelog
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
adventurelog-postgres:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- DJANGO_SECRET_KEY=${SECRET_KEY}
|
||||
- PGHOST=adventurelog-postgres
|
||||
- PGDATABASE=adventurelog
|
||||
- PGUSER=adventurelog
|
||||
- PGPASSWORD=${DB_PASSWORD}
|
||||
- PUBLIC_URL=https://travel.${DOMAIN}
|
||||
- CSRF_TRUSTED_ORIGINS=https://travel.${DOMAIN}
|
||||
- FRONTEND_URL=https://travel.${DOMAIN}
|
||||
volumes:
|
||||
- adventurelog_media:/code/media
|
||||
networks:
|
||||
- adventurelog-internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 384M
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8000/api/"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
adventurelog-postgres:
|
||||
image: postgis/postgis:16-3.5-alpine
|
||||
container_name: adventurelog-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=adventurelog
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
- POSTGRES_DB=adventurelog
|
||||
- TZ=Europe/Budapest
|
||||
volumes:
|
||||
- adventurelog_postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- adventurelog-internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 256M
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U adventurelog -d adventurelog"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
|
||||
adventurelog-frontend:
|
||||
image: ghcr.io/seanmorley15/adventurelog-frontend:v0.12.0
|
||||
container_name: adventurelog-frontend
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- PUBLIC_SERVER_URL=http://adventurelog:8000
|
||||
- BODY_SIZE_LIMIT=Infinity
|
||||
- ORIGIN=https://travel.${DOMAIN}
|
||||
networks:
|
||||
- traefik-public
|
||||
- adventurelog-internal
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.adventurelog.rule=Host(`travel.${DOMAIN}`)"
|
||||
- "traefik.http.routers.adventurelog.entrypoints=websecure"
|
||||
- "traefik.http.routers.adventurelog.tls=true"
|
||||
- "traefik.http.routers.adventurelog.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.adventurelog.loadbalancer.server.port=3000"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 256M
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
|
||||
volumes:
|
||||
adventurelog_media:
|
||||
adventurelog_postgres_data:
|
||||
|
||||
networks:
|
||||
traefik-public:
|
||||
external: true
|
||||
adventurelog-internal:
|
||||
Reference in New Issue
Block a user