--- version: "3.8" services: app: image: dragas/thttpd command: ["/usr/sbin/thttpd", "-C", "/etc/thttpd.conf", "-D", "-l", "/dev/stderr"] networks: - proxy deploy: restart_policy: condition: on-failure labels: - "traefik.enable=true" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" # Redirect from EXTRA_DOMAINS to DOMAIN - "coop-cloud.${STACK_NAME}.version=1.2.1+1.21.6" environment: - HTTP_SUBDIR volumes: - content:/var/www/http configs: - source: thttpd_conf target: /etc/thttpd.conf #healthcheck: # test: ["CMD", "curl", "-f", "http://localhost"] # interval: 30s # timeout: 10s # retries: 10 # start_period: 1m volumes: content: networks: proxy: external: true configs: thttpd_conf: name: ${STACK_NAME}_thttpd_conf_${THTTPD_DEFAULT_CONF_VERSION} template_driver: golang file: thttpd.conf