From e398390630dacdd869ec2308faef013fbd719720 Mon Sep 17 00:00:00 2001 From: Brady Lamprecht Date: Wed, 10 Jan 2018 12:29:41 -0700 Subject: [PATCH] Adding a named volume for 'postgresql-data'. --- docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index f76a7b3..dfc1fca 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,6 +27,8 @@ services: postgres: image: postgres:9.6-alpine env_file: postgres.env + volumes: + - netbox-postgres-data:/var/lib/postgresql/data volumes: netbox-static-files: @@ -37,3 +39,6 @@ volumes: driver: local netbox-report-files: driver: local + netbox-postgres-data: + driver: local +