Skip to content

Commit

Permalink
added "restart" policy "always" to docker-compose
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Feb 25, 2022
1 parent 22e9e31 commit 27b759a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deployment/docker/docker-compose.yml
Expand Up @@ -14,6 +14,7 @@ services:
mongodb:
image: docker.io/mongo:4.2
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand All @@ -28,6 +29,7 @@ services:
policies:
image: docker.io/eclipse/ditto-policies:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand All @@ -50,6 +52,7 @@ services:
things:
image: docker.io/eclipse/ditto-things:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand All @@ -74,6 +77,7 @@ services:
things-search:
image: docker.io/eclipse/ditto-things-search:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand All @@ -98,6 +102,7 @@ services:
concierge:
image: docker.io/eclipse/ditto-concierge:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand All @@ -122,6 +127,7 @@ services:
connectivity:
image: docker.io/eclipse/ditto-connectivity:${DITTO_VERSION:-latest}
mem_limit: 768m
restart: always
networks:
default:
aliases:
Expand All @@ -148,6 +154,7 @@ services:
gateway:
image: docker.io/eclipse/ditto-gateway:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand Down Expand Up @@ -185,6 +192,7 @@ services:

nginx:
image: docker.io/nginx:1.20-alpine
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx.htpasswd:/etc/nginx/nginx.htpasswd:ro
Expand Down
8 changes: 8 additions & 0 deletions deployment/docker/sandbox/docker-compose.yml
Expand Up @@ -14,6 +14,7 @@ services:
mongodb:
image: docker.io/mongo:4.2
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand All @@ -27,6 +28,7 @@ services:
policies:
image: docker.io/eclipse/ditto-policies:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand All @@ -40,6 +42,7 @@ services:
things:
image: docker.io/eclipse/ditto-things:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand All @@ -55,6 +58,7 @@ services:
things-search:
image: docker.io/eclipse/ditto-things-search:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand All @@ -70,6 +74,7 @@ services:
concierge:
image: docker.io/eclipse/ditto-concierge:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand All @@ -85,6 +90,7 @@ services:
connectivity:
image: docker.io/eclipse/ditto-connectivity:${DITTO_VERSION:-latest}
mem_limit: 768m
restart: always
networks:
default:
aliases:
Expand All @@ -102,6 +108,7 @@ services:
gateway:
image: docker.io/eclipse/ditto-gateway:${DITTO_VERSION:-latest}
mem_limit: 512m
restart: always
networks:
default:
aliases:
Expand Down Expand Up @@ -134,6 +141,7 @@ services:

nginx:
image: docker.io/nginx:1.13-alpine
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx.htpasswd:/etc/nginx/nginx.htpasswd:ro
Expand Down

0 comments on commit 27b759a

Please sign in to comment.