diff options
author | 2020-12-08 01:21:04 +0000 | |
---|---|---|
committer | 2020-12-08 01:21:04 +0000 | |
commit | ba76c05ceca6a7879678873f360cdaf575f0f493 (patch) | |
tree | 597f2ee142ca4e57f1daffd29286e533c10a397a /docker-compose.yml | |
download | go-gentoo-ba76c05ceca6a7879678873f360cdaf575f0f493.tar.gz go-gentoo-ba76c05ceca6a7879678873f360cdaf575f0f493.tar.bz2 go-gentoo-ba76c05ceca6a7879678873f360cdaf575f0f493.zip |
Initial version
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..022f6a6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,35 @@ +version: '3.2' + +services: + http-serving: + image: ${SOKO_IMAGE:-gentoo/go-gentoo:latest} + volumes: + - type: "bind" + source: "/var/log/go-gentoo" + target: "/var/log/go-gentoo" + ports: + - 127.0.0.1:5000:5000 + labels: + com.centurylinklabs.watchtower.enable: "true" + restart: always + environment: + SOKO_LOG_FILE: '/var/log/go-gentoo/web.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:-gogentoo} + shm_size: 512mb + volumes: + - ${POSTGRES_DATA_PATH:-/var/lib/gentoo-go/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 |