From d388dd05590bd441bb4bc8597573bbb6f7c9eab2 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 5 May 2020 17:11:24 +0200 Subject: [PATCH] Hacking away at this, still not working --- configs/prod/config.js.tmpl | 2 +- docker-compose.production.yml | 11 +++++++++-- docker-compose.yml | 8 +------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/configs/prod/config.js.tmpl b/configs/prod/config.js.tmpl index 6603ce9..8305a36 100644 --- a/configs/prod/config.js.tmpl +++ b/configs/prod/config.js.tmpl @@ -2,7 +2,7 @@ module.exports = { endpoint: "https://git.autonomic.zone/api/v1/", token: "{{ secret "api-token-v1" }}", platform: "gitea", - logLevel: "info", + logLevel: "debug", onboarding: true, onboardingConfig: { extends: ["config:base"], diff --git a/docker-compose.production.yml b/docker-compose.production.yml index a752566..ff78e7f 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -7,7 +7,7 @@ services: environment: - RENOVATE_CONFIG_FILE=/etc/config.js configs: - - source: config-js-prod-v1 + - source: config-js-prod-v2 target: /etc/config.js deploy: mode: replicated @@ -18,10 +18,17 @@ services: - "swarm.cronjob.schedule=*/1 * * * *" # testing # - "swarm.cronjob.schedule=0 8 * * *" # prod setup - "swarm.cronjob.skip-running=false" + - "swarm.cronjob.replicas=1" restart_policy: condition: none docker-cron-job: + volumes: + - "/var/run/docker.sock:/var/run/docker.sock" + environment: + - TZ=Europe/Amsterdam + - LOG_LEVEL=info + - LOG_JSON=false deploy: placement: constraints: @@ -30,7 +37,7 @@ services: - "traefik.enable=true" configs: - config-js-prod-v1: + config-js-prod-v2: file: configs/prod/config.js.tmpl template_driver: golang diff --git a/docker-compose.yml b/docker-compose.yml index 2ff6b44..49315cf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,10 +6,4 @@ services: image: "renovate/renovate:19.230" docker-cron-job: - image: "crazymax/swarm-cronjob" - volumes: - - "/var/run/docker.sock:/var/run/docker.sock" - environment: - - TZ=Europe/Amsterdam - - LOG_LEVEL=info - - LOG_JSON=false + image: "crazymax/swarm-cronjob:latest"