Move environment variables out of the compose file

This commit is contained in:
Yves Lavoie 2017-09-21 15:00:32 -04:00
parent 5366e0c0d7
commit 1c67abb087
2 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,9 @@ services:
# - pgdata:/var/lib/postgresql/data
lsmb:
image: ylavoie/ledgersmb
env_file:
- variables.env
image: "ylavoie/ledgersmb:${TAG}"
container_name: lsmb
networks:
- default
@ -37,12 +39,14 @@ services:
# - ndots:1
environment:
- PGHOST=postgres
- DEVELOPMENT=1
volumes:
- /tmp:/tmp
- ./ledgersmb-docker:/srv/ledgersmb-docker
- ./LedgerSMB:/srv/ledgersmb:rw
ports:
- 5001:5001
- 8080:8080
depends_on:
- postgres

1
variables.env Normal file
View File

@ -0,0 +1 @@
TAG=xenial