diff compose/sample/docker-compose.yml @ 90:63cb9be89a26 production v1.0.0

flow: Merged <release> 'v1.0.0' to <master> ('production').
author smith@nwoca.org
date Thu, 22 Sep 2016 01:49:20 +0100
parents cf23acedd048
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compose/sample/docker-compose.yml	Thu Sep 22 01:49:20 2016 +0100
@@ -0,0 +1,30 @@
+data:
+  image: busybox
+  volumes:
+    - ${PWD}/dbdata:/var/lib/postgresql/data
+    - ${PWD}/config:/config
+    - ${PWD}/backup:/backup
+db:
+  restart: always
+  image: djsmith/ssdt-postgres:1
+  volumes_from:
+    - data
+  environment:
+    - DB_NAME=usasdb
+    - DB_USER=usas
+    - DB_PASS=PleaseDontUseExamplePasswords
+app:
+  restart: always
+  image: djsmith/usas-app:snapshot
+  volumes_from:
+    - data
+  ports:
+    - "18004:8080"
+  links:
+    - db:database
+  environment:
+    - DB_HOST=database
+    - DB_NAME=$${DATABASE_ENV_DB_NAME}
+    - DB_USER=$${DATABASE_ENV_DB_USER}
+    - DB_PASS=$${DATABASE_ENV_DB_PASS}
+