87d0e5e59d
All 51 docker-compose.yml: replaced hardcoded subdomain.${DOMAIN}
with ${SUBDOMAIN}.${DOMAIN} in Traefik labels, app env vars, and
comments.
All 51 .felhom.yml: added SUBDOMAIN deploy field (type: subdomain)
with default matching existing subdomain metadata value.
Works with felhom-controller v0.27.0 which validates and stores the
user-chosen subdomain in app.yaml. Existing deployed apps get
SUBDOMAIN auto-injected via InjectMissingFields() on next sync.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
76 lines
2.1 KiB
YAML
76 lines
2.1 KiB
YAML
# Rallly - Időpont szavazás (Doodle alternatíva)
|
|
# Domain: ${SUBDOMAIN}.${DOMAIN}
|
|
# Database: postgres
|
|
# RAM: ~50M (mem_limit: 256M) | Pi-compatible: Yes
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
# SECRET_PASSWORD - Titkosítási kulcs (auto-generated)
|
|
# DB_PASSWORD - Adatbázis jelszó (auto-generated)
|
|
|
|
services:
|
|
rallly:
|
|
image: lukevella/rallly:3.12.1
|
|
container_name: rallly
|
|
restart: unless-stopped
|
|
depends_on:
|
|
rallly-postgres:
|
|
condition: service_healthy
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
- DATABASE_URL=postgresql://rallly:${DB_PASSWORD}@rallly-postgres:5432/rallly
|
|
- SECRET_PASSWORD=${SECRET_PASSWORD}
|
|
- NEXT_PUBLIC_BASE_URL=https://${SUBDOMAIN}.${DOMAIN}
|
|
networks:
|
|
- traefik-public
|
|
- rallly-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256M
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.rallly.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
|
|
- "traefik.http.routers.rallly.entrypoints=websecure"
|
|
- "traefik.http.routers.rallly.tls=true"
|
|
- "traefik.http.routers.rallly.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.rallly.loadbalancer.server.port=3000"
|
|
|
|
rallly-postgres:
|
|
image: postgres:16-alpine
|
|
container_name: rallly-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=rallly
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
|
- POSTGRES_DB=rallly
|
|
- TZ=Europe/Budapest
|
|
volumes:
|
|
- rallly_postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- rallly-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256M
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U rallly -d rallly"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 20s
|
|
|
|
volumes:
|
|
rallly_postgres_data:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|
|
rallly-internal:
|