version: '3.4' services: app: image: 'chewingbever/vieter:dev' deploy: mode: 'replicated' replicas: 1 placement: constraints: - 'node.labels.class==admin' labels: - 'traefik.enable=true' - 'traefik.http.routers.vieter.rule=Host(`arch.r8r.be`)' - 'traefik.http.routers.vieter.tls=true' - 'traefik.http.routers.vieter.tls.certresolver=letsEncrypt' - 'traefik.http.services.vieter.loadbalancer.server.port=8000' environment: - 'VIETER_API_KEY_FILE=/run/secrets/vieter_api_key' - 'VIETER_LOG_LEVEL=DEBUG' networks: - 'public' secrets: - vieter_api_key volumes: - 'data:/data' cron: image: 'chewingbever/vieter:dev' command: crond -f deploy: mode: 'replicated' replicas: 1 placement: constraints: - 'node.labels.class==admin' environment: - 'VIETER_API_KEY_FILE=/run/secrets/vieter_api_key' - 'VIETER_LOG_LEVEL=DEBUG' - 'VIETER_ADDRESS=https://arch.r8r.be' secrets: - vieter_api_key networks: public: external: true secrets: vieter_api_key: external: true volumes: data: