mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-04-19 14:47:12 -04:00
* Adjust database host name so that the Compose setup works out-of-the-box again
This commit is contained in:
parent
59be4f4afa
commit
36bc6d5ffc
@ -12,7 +12,10 @@
|
|||||||
|
|
||||||
version: "3.2"
|
version: "3.2"
|
||||||
services:
|
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
|
image: postgres:9.6-alpine
|
||||||
environment:
|
environment:
|
||||||
# Replace the password below for a secure setup
|
# Replace the password below for a secure setup
|
||||||
@ -21,10 +24,10 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
volumes:
|
volumes:
|
||||||
- "dbdata:/var/lib/postgresql/data"
|
- "pgdata:/var/lib/postgresql/data"
|
||||||
lsmb:
|
lsmb:
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- postgres
|
||||||
image: ledgersmb/ledgersmb:1.6
|
image: ledgersmb/ledgersmb:1.6
|
||||||
networks:
|
networks:
|
||||||
- internal
|
- internal
|
||||||
@ -53,7 +56,7 @@ services:
|
|||||||
# the rest of the image and on update/upgrade, the
|
# the rest of the image and on update/upgrade, the
|
||||||
# data will be lost.
|
# data will be lost.
|
||||||
volumes:
|
volumes:
|
||||||
dbdata:
|
pgdata:
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
Loading…
Reference in New Issue
Block a user