Skip to content

Commit

Permalink
docker: change always to unless-stopped on restart parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfield-fr authored and Sébastien Délèze committed Aug 20, 2021
1 parent 5a9891d commit 051b75b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker-compose.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ services:
extends:
file: docker-services.yml
service: app
restart: "always"
restart: "unless-stopped"
command: ["celery --app invenio_app.celery worker --loglevel=INFO"]
image: sonar
links:
Expand Down
12 changes: 6 additions & 6 deletions docker-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,27 @@ services:
lb:
build: ./docker/haproxy/
image: sonar-lb
restart: "always"
restart: "unless-stopped"
ports:
- "80:80"
- "443:443"
- "8080:8080"
frontend:
build: ./docker/nginx/
image: sonar-frontend
restart: "always"
restart: "unless-stopped"
ports:
- "80"
- "443"
cache:
image: redis
restart: "always"
restart: "unless-stopped"
read_only: true
ports:
- "6379:6379"
db:
image: postgres:12
restart: "always"
restart: "unless-stopped"
environment:
- "POSTGRES_USER=sonar"
- "POSTGRES_PASSWORD=sonar"
Expand All @@ -68,14 +68,14 @@ services:
- "5432:5432"
mq:
image: rabbitmq:3-management
restart: "always"
restart: "unless-stopped"
ports:
- "15672:15672"
- "5672:5672"
es:
build: ./docker/elasticsearch/
image: elasticsearch-icu-7.10.1
restart: "always"
restart: "unless-stopped"
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
Expand Down

0 comments on commit 051b75b

Please sign in to comment.