aboutsummaryrefslogtreecommitdiff
path: root/docker/blocks/option_db_postgresql
diff options
context:
space:
mode:
authorTristan Storch <tstorch@math.uni-bielefeld.de>2014-08-29 18:20:15 +0200
committerTristan Storch <tstorch@math.uni-bielefeld.de>2014-08-31 21:00:19 +0200
commitd1a2228f1cc1b0bec7023d226077e4002c07112a (patch)
tree7eed4c06a198972dd907806bb1df8c3c2f1a45d5 /docker/blocks/option_db_postgresql
parent2886eb76b69102f7c2fc7db3516567c677148057 (diff)
Docker mix and match setup
Rewrite of the docker setup. Now uses fig to manage containers and container linkage. The base is a block based mix and match, which will give you the possibility to easily test all configurations.
Diffstat (limited to 'docker/blocks/option_db_postgresql')
-rw-r--r--docker/blocks/option_db_postgresql/config6
-rw-r--r--docker/blocks/option_db_postgresql/fig6
2 files changed, 12 insertions, 0 deletions
diff --git a/docker/blocks/option_db_postgresql/config b/docker/blocks/option_db_postgresql/config
new file mode 100644
index 00000000..e5946b06
--- /dev/null
+++ b/docker/blocks/option_db_postgresql/config
@@ -0,0 +1,6 @@
+[database]
+DB_TYPE = postgres
+HOST = ${DB_1_PORT_5432_TCP_ADDR}:${DB_1_PORT_5432_TCP_PORT}
+NAME = ${DB_1_ENV_POSTGRESQL_DB}
+USER = ${DB_1_ENV_POSTGRESQL_USER}
+PASSWD = ${DB_1_ENV_POSTGRESQL_PASS}
diff --git a/docker/blocks/option_db_postgresql/fig b/docker/blocks/option_db_postgresql/fig
new file mode 100644
index 00000000..c839e904
--- /dev/null
+++ b/docker/blocks/option_db_postgresql/fig
@@ -0,0 +1,6 @@
+db:
+ image: wyaeld/postgres:9.3
+ environment:
+ POSTGRESQL_DB: gogs
+ POSTGRESQL_USER: gogs
+ POSTGRESQL_PASS: password