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.override.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.override.yml')
-rw-r--r-- | docker-compose.override.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/docker-compose.override.yml b/docker-compose.override.yml new file mode 100644 index 0000000..e2779d4 --- /dev/null +++ b/docker-compose.override.yml @@ -0,0 +1,47 @@ +version: '3.2' + +services: + http-serving: + build: + context: . + dockerfile: Dockerfile.dev + volumes: + - type: "bind" + source: "/var/log/go-gentoo" + target: "/var/log/go-gentoo" + - type: "bind" + source: "." + target: "/go/src/go-gentoo" + environment: + GO_GENTOO_LOG_FILE: '/var/log/go-gentoo/web.log' + GO_GENTOO_DEVMODE: 'true' +# GO_GENTOO_DEBUG: 'true' + ports: + - 127.0.0.1:5000:5000 + depends_on: + - db + db: + image: postgres:12 + restart: always + environment: + POSTGRES_USER: ${GO_GENTOO_POSTGRES_USER:-root} + POSTGRES_PASSWORD: ${GO_GENTOO_POSTGRES_PASSWORD:-root} + POSTGRES_DB: ${GO_GENTOO_POSTGRES_DB:-gogentoo} + 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: |