aboutsummaryrefslogtreecommitdiff
blob: cc144445520cf53c88f0e5521389285aeb546b1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: '3.2'

services:
  http-serving:
    image: ${SOKO_IMAGE:-gentoo/soko:latest}
    ports:
      - 127.0.0.1:5000:5000
    labels:
      com.centurylinklabs.watchtower.enable: "true"
    restart: always
    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"
    labels:
      com.centurylinklabs.watchtower.enable: "true"
    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}
    volumes:
      - ${POSTGRES_DATA_PATH:-/var/lib/postgresql/data}:/var/lib/postgresql/data
  watchtower:
    image: containrrr/watchtower:0.3.10
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /root/.docker/config.json:/config.json
    command: --label-enable