changeset 24:cea023cef5b2

add usps preview compose files
author smith@nwoca.org
date Wed, 13 Jan 2016 01:19:33 +0000
parents 6a4ba408b8c4
children 727f4cbded5e
files compose/preview/usps.template.yml compose/preview/usps.yml
diffstat 2 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compose/preview/usps.template.yml	Wed Jan 13 01:19:33 2016 +0000
@@ -0,0 +1,12 @@
+uspsdb:
+  extends:
+    file: /ssdt/compose/preview/usps.yml
+    service: uspsdb
+  volumes:
+    - |volumeName|:/var/lib/postgresql/data
+uspsapp:
+  extends:
+     file: /ssdt/compose/preview/usps.yml
+     service: uspsapp
+  links:
+    - uspsdb:database
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compose/preview/usps.yml	Wed Jan 13 01:19:33 2016 +0000
@@ -0,0 +1,20 @@
+# base compose file for usps preview release
+uspsdb:
+  restart: unless-stopped
+  image: docker.ssdt.io/ssdt-postgres:2
+  volumes:
+    - ${PWD}/backup:/backup
+  environment:
+    - DB_NAME=uspsdb
+    - DB_USER=usps
+    - DB_PASS=uspsdefault
+uspsapp:
+  restart: unless-stopped
+  image: docker.ssdt.io/usps-app:preview
+  volumes:
+    - ${PWD}/config:/config
+  environment:
+    - DB_HOST=database
+    - DB_NAME=$${DATABASE_ENV_DB_NAME}
+    - DB_USER=$${DATABASE_ENV_DB_USER}
+    - DB_PASS=$${DATABASE_ENV_DB_PASS}