Skip to content

Commit

Permalink
Changed finetuned Docker Compose files.
Browse files Browse the repository at this point in the history
Signed-off-by: Dennis Labordus <[email protected]>
  • Loading branch information
Dennis Labordus committed Nov 24, 2021
1 parent 98c92d9 commit 594844a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
2 changes: 0 additions & 2 deletions bin/docker-wait-on-containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ do
docker ps -a --filter label=compas
done

docker logs compas_scl-data-service_1

echo "Done no containers with filter 'health=starting'."
docker ps -a --filter label=compas
12 changes: 12 additions & 0 deletions compas/docker-compose-basex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ services:
- USERINFO_WHO_CLAIMNAME=name
- USERINFO_SESSION_WARNING=20
- USERINFO_SESSION_EXPIRES=30
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 30s
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/compas-scl-data-service/q/health/ready"]
interval: 15s
Expand All @@ -70,6 +76,12 @@ services:
- JWT_VERIFY_CLIENT_ID=cim-mapping
- JWT_GROUPS_PATH=resource_access/cim-mapping/roles
- USERINFO_WHO_CLAIMNAME=name
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 30s
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/compas-cim-mapping/q/health/ready"]
interval: 15s
Expand Down
10 changes: 8 additions & 2 deletions compas/docker-compose-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ services:
- PGDATA=/var/lib/postgresql/data/compas
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
interval: 15s
timeout: 10s
retries: 10
retries: 5
volumes:
- postgresql-data-volume:/var/lib/postgresql/data

Expand Down Expand Up @@ -83,6 +83,12 @@ services:
- JWT_VERIFY_CLIENT_ID=cim-mapping
- JWT_GROUPS_PATH=resource_access/cim-mapping/roles
- USERINFO_WHO_CLAIMNAME=name
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 30s
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/compas-cim-mapping/q/health/ready"]
interval: 15s
Expand Down

0 comments on commit 594844a

Please sign in to comment.