Permalink
Browse files

First commit of docker-compose-use mechanism enabling composable serv…

…ers from multiple yml files.
  • Loading branch information...
keithy committed Jan 7, 2019
0 parents commit d9530928ce1dd599b6c8272c6a93b7ed54004d15
Showing with 27 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +8 −0 docker-compose-use
  3. +18 −0 example_server.conf
@@ -0,0 +1 @@
.env
@@ -0,0 +1,8 @@
#!/bin/sh

# Run this when the configuration changes to
# regenerate the .env file for docker-compose

grep -v "#i#" $1 > /tmp/env
awk '{if (sub(/\\$/,"")) printf "%s", $0; else print $0}' /tmp/env > .env
sed -i 's/ //g' .env
@@ -0,0 +1,18 @@
#i# This is an example_server.configuration
#i#
#i# To use this run:
#i#
#i# > use_configuration example_server.conf
#i#
#i# Which will turn this file into a .env file ready for
#i# docker-compose to use.

COMPOSE_FILE=\
common.yml:\
base/mariaDB.yml:\
base/memcached.yml:\
phpfpm/phpfpm.yml:\
base/nginx.yml:\
xwiki.yml:faith.yml


0 comments on commit d953092

Please sign in to comment.