Browse Source

Restart always always always always always...

pull/9/head
Chris Smith 8 years ago
parent
commit
d5d1da6cbe
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      docker-compose.yml

+ 9
- 0
docker-compose.yml View File

@@ -24,6 +24,7 @@ services:
24 24
   etcd:
25 25
     image: quay.io/coreos/etcd:v2.3.3
26 26
     container_name: autoproxy_etcd
27
+    restart: always
27 28
     command: >-
28 29
       --name etcd0
29 30
       --initial-cluster etcd0=http://127.0.0.1:2380
@@ -41,6 +42,7 @@ services:
41 42
   reporter:
42 43
     image: csmith/service-reporter:latest
43 44
     container_name: autoproxy_reporter
45
+    restart: always
44 46
     links:
45 47
       - etcd:etcd
46 48
     volumes:
@@ -56,6 +58,7 @@ services:
56 58
   letsencrypt-updater:
57 59
     image: csmith/service-letsencrypt:latest
58 60
     container_name: autoproxy_letsencrypt-updater
61
+    restart: always
59 62
     volumes:
60 63
       - letsencrypt-data:/letsencrypt
61 64
     networks:
@@ -69,6 +72,7 @@ services:
69 72
   letsencrypt-lexicon:
70 73
     image: csmith/letsencrypt-lexicon:latest
71 74
     container_name: autoproxy_letsencrypt-lexicon
75
+    restart: always
72 76
     volumes:
73 77
       - letsencrypt-data:/letsencrypt
74 78
     environment:
@@ -83,6 +87,8 @@ services:
83 87
   # letsencrypt.sh repo for details about hook arguments.
84 88
   #letsencrypt-generic:
85 89
   #  image: csmith/letsencrypt-generic:latest
90
+  #  container_name: autoproxy_letsencrypt-generic
91
+  #  restart: always
86 92
   #  volumes:
87 93
   #    - letsencrypt-data:/letsencrypt
88 94
   #    - /my/hook/script:/dns/hook
@@ -96,6 +102,7 @@ services:
96 102
   nginx-updater:
97 103
     image: csmith/service-nginx:latest
98 104
     container_name: autoproxy_nginx-updater
105
+    restart: always
99 106
     volumes:
100 107
       - nginx-config:/nginx-config
101 108
     networks:
@@ -110,6 +117,7 @@ services:
110 117
   nginx:
111 118
     image: nginx:1.9
112 119
     container_name: autoproxy_nginx
120
+    restart: always
113 121
     volumes:
114 122
       - nginx-config:/etc/nginx/conf.d
115 123
       - letsencrypt-data:/letsencrypt
@@ -124,6 +132,7 @@ services:
124 132
   nginx-config-hupper:
125 133
     image: masm/inotify-signal-container:latest
126 134
     container_name: autoproxy_nginx-config-hupper
135
+    restart: always
127 136
     volumes:
128 137
       - nginx-config:/monitor/nginx
129 138
       - letsencrypt-data:/monitor/letsencrypt

Loading…
Cancel
Save