Skip to content

Commit 594844a

Browse files
author
Dennis Labordus
committed
Changed finetuned Docker Compose files.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 98c92d9 commit 594844a

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

bin/docker-wait-on-containers.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ do
1010
docker ps -a --filter label=compas
1111
done
1212

13-
docker logs compas_scl-data-service_1
14-
1513
echo "Done no containers with filter 'health=starting'."
1614
docker ps -a --filter label=compas

compas/docker-compose-basex.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ services:
5151
- USERINFO_WHO_CLAIMNAME=name
5252
- USERINFO_SESSION_WARNING=20
5353
- USERINFO_SESSION_EXPIRES=30
54+
deploy:
55+
restart_policy:
56+
condition: on-failure
57+
delay: 5s
58+
max_attempts: 3
59+
window: 30s
5460
healthcheck:
5561
test: ["CMD", "curl", "-f", "http://localhost:8080/compas-scl-data-service/q/health/ready"]
5662
interval: 15s
@@ -70,6 +76,12 @@ services:
7076
- JWT_VERIFY_CLIENT_ID=cim-mapping
7177
- JWT_GROUPS_PATH=resource_access/cim-mapping/roles
7278
- USERINFO_WHO_CLAIMNAME=name
79+
deploy:
80+
restart_policy:
81+
condition: on-failure
82+
delay: 5s
83+
max_attempts: 3
84+
window: 30s
7385
healthcheck:
7486
test: ["CMD", "curl", "-f", "http://localhost:8080/compas-cim-mapping/q/health/ready"]
7587
interval: 15s

compas/docker-compose-postgresql.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ services:
1717
- PGDATA=/var/lib/postgresql/data/compas
1818
healthcheck:
1919
test: ["CMD-SHELL", "pg_isready -U postgres"]
20-
interval: 5s
20+
interval: 15s
2121
timeout: 10s
22-
retries: 10
22+
retries: 5
2323
volumes:
2424
- postgresql-data-volume:/var/lib/postgresql/data
2525

@@ -83,6 +83,12 @@ services:
8383
- JWT_VERIFY_CLIENT_ID=cim-mapping
8484
- JWT_GROUPS_PATH=resource_access/cim-mapping/roles
8585
- USERINFO_WHO_CLAIMNAME=name
86+
deploy:
87+
restart_policy:
88+
condition: on-failure
89+
delay: 5s
90+
max_attempts: 3
91+
window: 30s
8692
healthcheck:
8793
test: ["CMD", "curl", "-f", "http://localhost:8080/compas-cim-mapping/q/health/ready"]
8894
interval: 15s

0 commit comments

Comments
 (0)