Skip to content

Commit

Permalink
Merge pull request #4048 from camptocamp/restart
Browse files Browse the repository at this point in the history
Restart containers on failure
  • Loading branch information
sbrunner committed Aug 24, 2018
2 parents 86aa201 + d9ea978 commit 8381c7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:

nginx:
image: nginx:1
restart: on-failure
ports:
- 8081:80
volumes_from:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ ${service_defaults('config')}\
print:
image: camptocamp/mapfish_print:3.15
user: www-data
restart: on-failure
volumes_from:
- config:ro
${service_defaults('print', 8080)}\

mapserver:
image: camptocamp/mapserver:7.2
user: www-data
restart: on-failure
volumes_from:
- config:rw
volumes:
Expand All @@ -31,13 +33,15 @@ ${service_defaults('mapserver', 8080)}\
## qgisserver:
## image: camptocamp/geomapfish-qgisserver:gmf2.3-qgis3.2
## user: www-data
## restart: on-failure
## volumes_from:
## - config:ro
##${service_defaults('qgisserver', 8080)}

tinyows:
image: camptocamp/tinyows
user: www-data
restart: on-failure
volumes_from:
- config:ro
entrypoint: []
Expand All @@ -46,13 +50,15 @@ ${service_defaults('tinyows', 8080)}\
mapcache:
image: camptocamp/mapcache:1.6
user: www-data
restart: on-failure
volumes_from:
- config:ro
${service_defaults('mapcache', 8080)}\

memcached:
image: memcached:1.5
user: www-data
restart: on-failure
command:
- memcached
- --memory-limit=512
Expand All @@ -61,6 +67,7 @@ ${service_defaults('memcached', 11211)}\
redis:
image: redis:3.2
user: www-data
restart: on-failure
command:
- redis-server
- --save
Expand All @@ -76,13 +83,15 @@ ${service_defaults('redis', 6379)}\
tilecloudchain:
image: camptocamp/tilecloud-chain:1.7
user: www-data
restart: on-failure
volumes_from:
- config:ro
${service_defaults('tilecloudchain', 8080)}\

tilegeneration_slave:
image: camptocamp/tilecloud-chain:1.7
user: www-data
restart: on-failure
volumes_from:
- config:ro
${service_defaults('tilecloudchain')}\
Expand All @@ -94,6 +103,7 @@ ${service_defaults('tilecloudchain')}\
geoportal:
image: ${docker_base}-geoportal:${docker_tag}
user: www-data
restart: on-failure
volumes:
- /var/sig:/var/sig:ro
${service_defaults('geoportal', 8080)}\
Expand All @@ -110,6 +120,7 @@ ${service_defaults('geoportal')}\

front:
image: haproxy:1.8.8
restart: on-failure
volumes_from:
- config:ro
volumes:
Expand Down

0 comments on commit 8381c7e

Please sign in to comment.