diff --git a/stacks/vieter.yml b/stacks/vieter.yml index a5a15a4..10a225b 100644 --- a/stacks/vieter.yml +++ b/stacks/vieter.yml @@ -1,4 +1,4 @@ -version: '3' +version: '3.4' services: app: @@ -18,17 +18,40 @@ services: - 'traefik.http.services.vieter.loadbalancer.server.port=8000' environment: - - 'API_KEY' - - 'LOG_LEVEL=DEBUG' + - '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: -