--- version: "3.8" services: app: image: privatebin/nginx-fpm-alpine:1.7.6 configs: - source: php_config target: /srv/cfg/conf.php - source: robots target: /var/www/robots.txt networks: - proxy read_only: true environment: - PB_PUBLIC_DIRECTORY deploy: restart_policy: condition: on-failure labels: - "traefik.enable=true" - "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8080" - "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}" - "coop-cloud.${STACK_NAME}.version=0.6.0+1.7.6" volumes: - privatebin-data:/srv/data:rw healthcheck: test: [ "CMD", "wget", "-qO/dev/null", "http://localhost:8080" ] interval: 30s retries: 3 start_period: 30s timeout: 10s volumes: privatebin-data: networks: proxy: external: true configs: php_config: name: ${STACK_NAME}_php_config_${PB_PHP_CONFIG_VERSION} file: conf.php.tmpl template_driver: golang robots: name: ${STACK_NAME}_robots_${PB_ROBOTS_VERSION} file: robots.txt.tmpl template_driver: golang