🐳 Extracted postgres env into new file

This commit is contained in:
misazr 2017-08-30 11:45:14 +02:00 committed by Christian Mäder
parent f9d60692f4
commit de9b6a853d
No known key found for this signature in database
GPG Key ID: 92FFD0A711F196BB
3 changed files with 7 additions and 8 deletions

View File

@ -14,10 +14,8 @@ services:
- test
postgres:
image: postgres:9.6-alpine
environment:
POSTGRES_USER: netbox
POSTGRES_PASSWORD: J5brHrAXFLQSif0K
POSTGRES_DB: netbox
env_file: postgres.env
volumes:
netbox-static-files:
driver: local

View File

@ -24,10 +24,8 @@ services:
- netbox-nginx-config:/etc/netbox-nginx/
postgres:
image: postgres:9.6-alpine
environment:
POSTGRES_USER: netbox
POSTGRES_PASSWORD: J5brHrAXFLQSif0K
POSTGRES_DB: netbox
env_file: postgres.env
volumes:
netbox-static-files:
driver: local

3
postgres.env Normal file
View File

@ -0,0 +1,3 @@
POSTGRES_USER=netbox
POSTGRES_PASSWORD=J5brHrAXFLQSif0K
POSTGRES_DB=netbox