changeset 16:e882fb87199a

DEP-7: add update script. set default restart on services to unless-stopped
author smith@nwoca.org
date Sun, 27 Dec 2015 23:01:13 +0000
parents 976b754592f4
children 6871bc8fd021
files compose/preview/usas.yml update.sh
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/compose/preview/usas.yml	Sun Dec 27 19:43:06 2015 +0000
+++ b/compose/preview/usas.yml	Sun Dec 27 23:01:13 2015 +0000
@@ -1,6 +1,6 @@
 # base compose file for USAS preview release
 usasdb:
-  restart: always
+  restart: unless-stopped
   image: docker.ssdt.io/ssdt-postgres:2
   volumes:
     - ./backup:/backup
@@ -9,11 +9,10 @@
     - DB_USER=usas
     - DB_PASS=usasdefault
 usasapp:
-  restart: always
+  restart: unless-stopped
   image: docker.ssdt.io/usas-app:preview
   volumes:
     - ./config:/config
-
   environment:
     - DB_HOST=database
     - DB_NAME=$${DATABASE_ENV_DB_NAME}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/update.sh	Sun Dec 27 23:01:13 2015 +0000
@@ -0,0 +1,2 @@
+docker pull docker.ssdt.io/ssdt-utils
+docker run -it -v /ssdt:/ssdt --rm docker.ssdt.io/ssdt-utils update