#### NETWORKS networks: traefik_front_network: external: true back_network_stirling: driver: bridge attachable: true #### SERVICES services: ### stirling-pdf stirling-pdf: container_name: stirling-pdf hostname: stirling-pdf image: stirlingtools/stirling-pdf:latest networks: - traefik_front_network volumes: - ./data:/usr/share/tessdata:rw - ./config:/configs:rw - ./logs:/logs:rw environment: - DOCKER_ENABLE_SECURITY=false - SECURITY_ENABLELOGIN=false - LANGS=en_GB,en_US,ar_AR,de_DE,fr_FR,es_ES,zh_CN,zh_TW,ca_CA,it_IT,sv_SE,pl_PL,ro_RO,ko_KR,pt_BR,ru_RU,el_GR,hi_IN,hu_HU,tr_TR,id_ID - SYSTEM_DEFAULTLOCALE=en-US - UI_APPNAME=Stirling-PDF - UI_HOMEDESCRIPTION=Demo site for Stirling-PDF Latest - UI_APPNAMENAVBAR=Stirling-PDF Latest - SYSTEM_MAXFILESIZE=100 - METRICS_ENABLED=true - SYSTEM_GOOGLEVISIBILITY=true restart: on-failure:5 healthcheck: test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -qv 'Please sign in'"] interval: 5s timeout: 10s retries: 16 labels: - "com.centurylinklabs.watchtower.enable=true" - "traefik.enable=true" - "traefik.docker.network=traefik_front_network" ## HTTP - "traefik.http.routers.stirling-pdf-http.rule=Host(`stirling-pdf.tips-of-mine.com`)" - "traefik.http.routers.stirling-pdf-http.entrypoints=http" ## HTTPS - "traefik.http.routers.stirling-pdf-https.rule=Host(`stirling-pdf.tips-of-mine.com`)" - "traefik.http.routers.stirling-pdf-https.entrypoints=https" - "traefik.http.routers.stirling-pdf-https.tls=true" - "traefik.http.routers.stirling-pdf.service=stirling-pdf-service" ## Middleware ## Service - "traefik.http.services.stirling-pdf-service.loadbalancer.server.port=8080"