diff options
author | 2020-11-08 20:27:39 +0000 | |
---|---|---|
committer | 2020-11-08 20:27:39 +0000 | |
commit | a94c656acc97f077adb7a1e7ec5f83671aee29aa (patch) | |
tree | ff9e1b55f7214164f639a8250eb60b75a98ccc5d /docker-compose.override.yml | |
parent | Move selftest to a separate component (diff) | |
download | soko-a94c656acc97f077adb7a1e7ec5f83671aee29aa.tar.gz soko-a94c656acc97f077adb7a1e7ec5f83671aee29aa.tar.bz2 soko-a94c656acc97f077adb7a1e7ec5f83671aee29aa.zip |
Add selfcheck component to docker-compose
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'docker-compose.override.yml')
-rw-r--r-- | docker-compose.override.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 25a3fba..a732c77 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -43,6 +43,25 @@ services: # SOKO_DEBUG: 'true' depends_on: - db + selfcheck: + image: ${SOKO_IMAGE:-gentoo/soko:latest} + volumes: + - type: "bind" + source: "/mnt/selfcheck-packages-tree" + target: "/mnt/selfcheck-packages-tree" + - type: "bind" + source: "/var/log/soko" + target: "/var/log/soko" + ports: + - 127.0.0.1:5001:5000 + labels: + com.centurylinklabs.watchtower.enable: "true" + restart: always + environment: + SOKO_LOG_FILE: '/var/log/soko/selfcheck.log' + entrypoint: /go/src/soko/bin/soko --enable-selfchecks + depends_on: + - db db: image: postgres:12 restart: always |