From de9b6a853d547de933465fc7014503bcf55b8520 Mon Sep 17 00:00:00 2001 From: misazr Date: Wed, 30 Aug 2017 11:45:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Extracted=20postgres=20env=20int?= =?UTF-8?q?o=20new=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.test.yml | 6 ++---- docker-compose.yml | 6 ++---- postgres.env | 3 +++ 3 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 postgres.env diff --git a/docker-compose.test.yml b/docker-compose.test.yml index c2b7508..978de00 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 93edfbc..117925f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/postgres.env b/postgres.env new file mode 100644 index 0000000..8bc8d28 --- /dev/null +++ b/postgres.env @@ -0,0 +1,3 @@ +POSTGRES_USER=netbox +POSTGRES_PASSWORD=J5brHrAXFLQSif0K +POSTGRES_DB=netbox