Skip to content

Commit

Permalink
Update restart option for services in docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pcbimon committed Apr 29, 2024
1 parent 3d409c9 commit 2c27cb5
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ services:
condition: service_healthy
volumes:
- ckan_storage:/var/lib/ckan
# restart: unless-stopped
restart: unless-stopped
healthcheck:
test: curl --max-time 10 -f http://localhost:5000/api/3 || exit 1
# first startup and config takes really long
Expand Down Expand Up @@ -78,26 +78,14 @@ services:
condition: service_healthy
volumes:
- ckan_xloader_storage:/var/lib/ckan
# restart: unless-stopped
restart: unless-stopped
healthcheck:
test: curl --max-time 10 -f http://localhost:5000/api/3 || exit 1
# first startup and config takes really long
start_period: 240s
interval: 10s
timeout: 10s
retries: 5
datapusher:
networks:
- ckannet
- dbnet
image: ckan/ckan-base-datapusher:${DATAPUSHER_VERSION}
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:8800"]
start_period: 60s
interval: 10s
timeout: 5s
retries: 5

db:
build:
Expand Down

0 comments on commit 2c27cb5

Please sign in to comment.