* Adjust database host name so that the Compose setup works out-of-the-box again

This commit is contained in:
Erik Huelsmann 2018-05-23 21:45:55 +02:00
parent 681a604143
commit f5306a1e3e

View File

@ -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: