78 lines
2.2 KiB
YAML
78 lines
2.2 KiB
YAML
# Cal.com - Nyílt forráskódú időpontfoglaló (Calendly alternatíva)
|
|
# Domain: cal.${DOMAIN}
|
|
# Database: postgres
|
|
# RAM: ~200M (mem_limit: 768M) | Pi-compatible: No
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
# NEXTAUTH_SECRET - NextAuth titkosítási kulcs (auto-generated)
|
|
# CALENDSO_ENCRYPTION_KEY- Titkosítási kulcs (auto-generated)
|
|
# DB_PASSWORD - Adatbázis jelszó (auto-generated)
|
|
|
|
services:
|
|
calcom:
|
|
image: calcom/cal.com:v4.8.7
|
|
container_name: calcom
|
|
restart: unless-stopped
|
|
depends_on:
|
|
calcom-postgres:
|
|
condition: service_healthy
|
|
environment:
|
|
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET}
|
|
- CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY}
|
|
- DATABASE_URL=postgresql://calcom:${DB_PASSWORD}@calcom-postgres:5432/calcom
|
|
- NEXT_PUBLIC_WEBAPP_URL=https://cal.${DOMAIN}
|
|
- NEXTAUTH_URL=https://cal.${DOMAIN}
|
|
networks:
|
|
- traefik-public
|
|
- calcom-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 768M
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/api/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.calcom.rule=Host(`cal.${DOMAIN}`)"
|
|
- "traefik.http.routers.calcom.entrypoints=websecure"
|
|
- "traefik.http.routers.calcom.tls=true"
|
|
- "traefik.http.routers.calcom.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.calcom.loadbalancer.server.port=3000"
|
|
|
|
calcom-postgres:
|
|
image: postgres:16-alpine
|
|
container_name: calcom-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_USER=calcom
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
|
- POSTGRES_DB=calcom
|
|
- TZ=Europe/Budapest
|
|
volumes:
|
|
- calcom_postgres_data:/var/lib/postgresql/data
|
|
networks:
|
|
- calcom-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256M
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U calcom -d calcom"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 20s
|
|
|
|
volumes:
|
|
calcom_postgres_data:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|
|
calcom-internal:
|