Skip to content

Commit

Permalink
Changed docker restart policy to always
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSkierniewski committed Apr 7, 2017
1 parent 8ae8dc1 commit a2060a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions ansible/templates/production-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
proxy_server:
image: nginx:1.11-alpine
container_name: production_proxy_server
restart: unless-stopped
restart: always
ports:
- "80:80"
- "443:443"
Expand All @@ -16,7 +16,7 @@ services:
- gznet
web_server:
image: registry.gitlab.com/grupazero/staging:{{ APP_VERSION | default('latest', true) }}
restart: unless-stopped
restart: always
environment:
OVERRIDE_UMASK: "022"
XDEBUG: "false"
Expand All @@ -32,14 +32,14 @@ services:
- gznet
redis_server:
image: redis:3-alpine
restart: unless-stopped
restart: always
volumes:
- redisdata:/data
networks:
- gznet
letsencrypt_service:
image: jrcs/letsencrypt-nginx-proxy-companion:v1.4
restart: unless-stopped
restart: always
depends_on:
- proxy_server
- docker_gen_service
Expand All @@ -55,7 +55,7 @@ services:
docker_gen_service:
image: jwilder/docker-gen:0.7.3
container_name: production_docker_gen_service
restart: unless-stopped
restart: always
depends_on:
- proxy_server
volumes_from:
Expand Down
10 changes: 5 additions & 5 deletions ansible/templates/staging-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
proxy_server:
image: nginx:1.11-alpine
container_name: staging_proxy_server
restart: unless-stopped
restart: always
ports:
- "80:80"
- "443:443"
Expand All @@ -17,7 +17,7 @@ services:
- gznet
web_server:
image: registry.gitlab.com/grupazero/staging:{{ APP_VERSION | default('latest', true) }}
restart: unless-stopped
restart: always
environment:
OVERRIDE_UMASK: "022"
XDEBUG: "false"
Expand All @@ -33,14 +33,14 @@ services:
- gznet
redis_server:
image: redis:3-alpine
restart: unless-stopped
restart: always
volumes:
- redisdata:/data
networks:
- gznet
letsencrypt_service:
image: jrcs/letsencrypt-nginx-proxy-companion:v1.4
restart: unless-stopped
restart: always
depends_on:
- proxy_server
- docker_gen_service
Expand All @@ -56,7 +56,7 @@ services:
docker_gen_service:
image: jwilder/docker-gen:0.7.3
container_name: staging_docker_gen_service
restart: unless-stopped
restart: always
depends_on:
- proxy_server
volumes_from:
Expand Down

0 comments on commit a2060a4

Please sign in to comment.