From 48ee93f42e7fc739f5af333a6a57cb29076918ec Mon Sep 17 00:00:00 2001 From: Bogdan Mihai Date: Wed, 3 Aug 2016 19:21:59 +0300 Subject: [PATCH 1/2] Mount docker postgres volume on host --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 54d8f92..187acba 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,6 +27,8 @@ services: postgres: image: postgres:9.5 + volumes: + - ./data/postgres:/var/lib/postgresql/data web: extends: base From 53f7e10ea7a769894b511892f40b0dbb4c82725d Mon Sep 17 00:00:00 2001 From: Bogdan Mihai Date: Thu, 4 Aug 2016 17:50:24 +0300 Subject: [PATCH 2/2] Compartmentalize data folder --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 187acba..0c6ddb9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: SENTRY_POSTGRES_HOST: postgres SENTRY_EMAIL_HOST: smtp volumes: - - ./data:/var/lib/sentry/files + - ./data/sentry:/var/lib/sentry/files smtp: image: tianon/exim4