diff options
author | 2020-05-12 02:15:24 +0200 | |
---|---|---|
committer | 2020-05-12 02:15:24 +0200 | |
commit | 713a85b961b3952e1390d45c1054e18e1b08e518 (patch) | |
tree | 9088f0085c4b50e19d96e792f9b67aa9e6b9e4dd /docker-compose.override.yml | |
parent | Bump the version to v0.1.22 (diff) | |
download | soko-713a85b961b3952e1390d45c1054e18e1b08e518.tar.gz soko-713a85b961b3952e1390d45c1054e18e1b08e518.tar.bz2 soko-713a85b961b3952e1390d45c1054e18e1b08e518.zip |
Add a docker-compose.override.yml for the development
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'docker-compose.override.yml')
-rw-r--r-- | docker-compose.override.yml | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/docker-compose.override.yml b/docker-compose.override.yml new file mode 100644 index 0000000..b9210f5 --- /dev/null +++ b/docker-compose.override.yml @@ -0,0 +1,63 @@ +version: '3.2' + +services: + http-serving: + build: . + volumes: + - type: "bind" + source: "/var/log/soko" + target: "/var/log/soko" + environment: + SOKO_LOG_FILE: '/var/log/soko/web.log' +# SOKO_DEBUG: 'true' + ports: + - 127.0.0.1:5000:5000 + depends_on: + - db + updater: + build: + context: . + dockerfile: Dockerfile.updater + 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: "." +# target: "/go/src/soko" + - type: "bind" + source: "/var/log/soko" + target: "/var/log/soko" + environment: + SOKO_LOG_FILE: '/var/log/soko/updater.log' +# SOKO_DEBUG: '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: + - pgdata:/var/lib/postgresql/data + pgadmin: + image: dpage/pgadmin4 + logging: + driver: none + environment: + PGADMIN_DEFAULT_EMAIL: admin@admin.org + PGADMIN_DEFAULT_PASSWORD: admin + volumes: + - pgadmin:/root/.pgadmin + ports: + - "5050:80" + restart: unless-stopped + +volumes: + pgdata: + pgadmin: |