From cf5b1af31a4b247339b327a76fc6342d54a498e9 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 21 Nov 2017 09:59:11 +1300 Subject: [PATCH] Fixes #353 and allows easier dev & prod environments by splitting dev-specific configuration into a separate docker-compose. --- docker-compose.dev.yml | 9 +++++++++ docker-compose.yml | 2 -- env-example | 5 +++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 docker-compose.dev.yml diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml new file mode 100644 index 00000000..ed1e80fb --- /dev/null +++ b/docker-compose.dev.yml @@ -0,0 +1,9 @@ +version: "2" + +services: + +### Applications Code Container ############################# + + applications: + volumes: + - ${APPLICATION}:/var/www diff --git a/docker-compose.yml b/docker-compose.yml index 0d352062..aedcf00e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,8 +6,6 @@ services: applications: image: tianon/true - volumes: - - ${APPLICATION}:/var/www ### Workspace Utilities Container ########################### diff --git a/env-example b/env-example index 9c401912..5c59a29e 100644 --- a/env-example +++ b/env-example @@ -2,6 +2,11 @@ # General Setup ########################################################### +### Docker compose files ############################################################################################### +# Select which docker-compose files to include. + +COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml + ### Application Path ################################################################################################### # Point to your code, will be available at `/var/www`.