45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
services:
|
|
app:
|
|
image: git.lukas-harat.com/lukas/promo_rathaus:${IMAGE_TAG:-latest}
|
|
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
- "3003:3000"
|
|
|
|
environment:
|
|
DATABASE_URL: postgres://promo_rathaus:${POSTGRES_PASSWORD}@postgres:5432/promo_rathaus
|
|
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
|
|
BETTER_AUTH_URL: ${BETTER_AUTH_URL}
|
|
STAFF_SEED_EMAIL: ${STAFF_SEED_EMAIL}
|
|
STAFF_SEED_PASSWORD: ${STAFF_SEED_PASSWORD}
|
|
RESEND_API_KEY: ${RESEND_API_KEY}
|
|
RESERVATIONS_FROM_EMAIL: ${RESERVATIONS_FROM_EMAIL}
|
|
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
POSTGRES_USER: promo_rathaus
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
POSTGRES_DB: promo_rathaus
|
|
|
|
volumes:
|
|
- /mnt/YOUR_POOL/apps/promo-rathaus/postgres:/var/lib/postgresql/data
|
|
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD-SHELL",
|
|
"pg_isready -U promo_rathaus -d promo_rathaus"
|
|
]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 10s |