From f5306a1e3e7e45a08722df253c8b11042c02c335 Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Wed, 23 May 2018 21:45:55 +0200 Subject: [PATCH] * Adjust database host name so that the Compose setup works out-of-the-box again --- docker-compose.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 434e91d..8c8cf5c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,10 @@ version: "3.2" services: - db: + # Note that the container needs to be named "postgres" here, + # because that allows us to use the default hostname ("postgres") + # from the LedgerSMB configuration + postgres: image: postgres:9.6-alpine environment: # Replace the password below for a secure setup @@ -21,10 +24,10 @@ services: networks: - internal volumes: - - "dbdata:/var/lib/postgresql/data" + - "pgdata:/var/lib/postgresql/data" lsmb: depends_on: - - db + - postgres image: ledgersmb/ledgersmb:1.5 networks: - internal @@ -53,7 +56,7 @@ services: # the rest of the image and on update/upgrade, the # data will be lost. volumes: - dbdata: + pgdata: networks: