added apps!
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
# Rallly - Időpont szavazás (Doodle alternatíva)
|
||||
# Domain: poll.${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://poll.${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(`poll.${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:
|
||||
Reference in New Issue
Block a user