Files
docker-compose-template/apps/zilean/compose.yaml
T

57 lines
1.8 KiB
YAML

services:
zilean:
image: ipromknight/zilean:latest
restart: unless-stopped
container_name: zilean
tty: true
expose:
- 8181
environment:
Zilean__EnableDashboard: true
Zilean__Database__ConnectionString: Host=zilean_postgres;Database=zilean;Username=zilean;Password=postgres;Include Error Detail=true;Timeout=30;CommandTimeout=3600
Zilean__Imdb__UseAllCores: true
Zilean__Imdb__UseLucene: true
Zilean__Parsing__BatchSize: 100000
Zilean__Dmm_ScrapeSchedule: 32 * * * *
labels:
- "traefik.enable=true"
- "traefik.http.routers.zilean.rule=Host(`${ZILEAN_HOSTNAME?}`)"
- "traefik.http.routers.zilean.entrypoints=websecure"
- "traefik.http.routers.zilean.tls.certresolver=letsencrypt"
- "traefik.http.routers.zilean.middlewares=authelia@docker"
- "traefik.http.services.zilean.loadbalancer.server.port=8181"
volumes:
- ${DOCKER_DATA_DIR}/zilean/tmp:/tmp
depends_on:
zilean_postgres:
condition: service_healthy
healthcheck:
test: curl --connect-timeout 10 --silent --show-error --fail http://localhost:8181/healthchecks/ping
timeout: 60s
interval: 30s
retries: 10
profiles:
- zilean
- all
zilean_postgres:
image: postgres:17.2-alpine
container_name: zilean_postgres
restart: unless-stopped
shm_size: 2G
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: zilean
POSTGRES_PASSWORD: postgres
POSTGRES_DB: zilean
volumes:
- ${DOCKER_DATA_DIR}/zilean/db:/var/lib/postgresql/data/pgdata
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U zilean -d zilean" ]
interval: 30s
timeout: 5s
retries: 5
profiles:
- zilean
- all