version: '3.2' services: http-serving: image: ${SOKO_IMAGE:-gentoo/soko:latest} volumes: - type: "bind" source: "/var/log/soko" target: "/var/log/soko" ports: - 127.0.0.1:5000:5000 labels: com.centurylinklabs.watchtower.enable: "true" restart: always environment: SOKO_LOG_FILE: '/var/log/soko/web.log' depends_on: - db updater: image: ${SOKO_UPDATER_IMAGE:-gentoo/soko-updater:latest} volumes: - type: "bind" source: "/mnt/packages-tree" target: "/mnt/packages-tree" - type: "bind" source: "/var/cache/pgo-egencache" target: "/var/cache/pgo-egencache" - type: "bind" source: "/var/log/soko" target: "/var/log/soko" labels: com.centurylinklabs.watchtower.enable: "true" environment: SOKO_LOG_FILE: '/var/log/soko/updater.log' depends_on: - db db: image: postgres:12 restart: always environment: POSTGRES_USER: ${SOKO_POSTGRES_USER:-root} POSTGRES_PASSWORD: ${SOKO_POSTGRES_PASSWORD:-root} POSTGRES_DB: ${SOKO_POSTGRES_DB:-soko} shm_size: 512mb volumes: - ${POSTGRES_DATA_PATH:-/var/lib/postgresql/data}:/var/lib/postgresql/data watchtower: image: containrrr/watchtower:0.3.10 restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock - /root/.docker/config.json:/config.json command: --label-enable