7350cd905a
wger 2.6 crash-loops on a fresh deploy. Its settings/main.py reads the whole DJANGO_DB_* set unconditionally -- even when the engine is sqlite: ImproperlyConfigured: Set the DJANGO_DB_DATABASE environment variable ...then, once that was supplied: ImproperlyConfigured: Set the DJANGO_DB_USER environment variable Satisfying it means either stuffing in dummy USER/PASSWORD/HOST/PORT values that the sqlite backend ignores, or giving wger a real Postgres sidecar. The first is a hack, the second is compose restructuring -- both outside this campaign's allowed-fix set. Reverted to the previously shipped 2.3. NOTE: the interim DJANGO_DB_DATABASE line added earlier in this campaign is reverted TOO, deliberately -- on 2.3 the sqlite path came from wger's own default, and pinning a different explicit path would have pointed an existing customer's wger at an empty database. Campaign 7 catalog sweep. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Nn3VgQk9iwEGgyx6QJ2NvE
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
# wger - Edzésnapló és fitnesz tervező
|
|
# Domain: ${SUBDOMAIN}.${DOMAIN}
|
|
# Database: None (file-based)
|
|
# 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)
|
|
|
|
services:
|
|
wger:
|
|
image: wger/server:2.3
|
|
container_name: wger
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
- DJANGO_DB_ENGINE=django.db.backends.sqlite3
|
|
- SITE_URL=https://${SUBDOMAIN}.${DOMAIN}
|
|
volumes:
|
|
- wger_data:/home/wger/db
|
|
- wger_media:/home/wger/media
|
|
networks:
|
|
- traefik-public
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 384M
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:80"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.wger.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
|
|
- "traefik.http.routers.wger.entrypoints=websecure"
|
|
- "traefik.http.routers.wger.tls=true"
|
|
- "traefik.http.routers.wger.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.wger.loadbalancer.server.port=80"
|
|
|
|
volumes:
|
|
wger_data:
|
|
wger_media:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|