🐳 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 - test
postgres: postgres:
image: postgres:9.6-alpine image: postgres:9.6-alpine
environment: env_file: postgres.env
POSTGRES_USER: netbox
POSTGRES_PASSWORD: J5brHrAXFLQSif0K
POSTGRES_DB: netbox
volumes: volumes:
netbox-static-files: netbox-static-files:
driver: local driver: local

View File

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

3
postgres.env Normal file
View File

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