Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PADME Station Software
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PADME-PHT Development
PADME Station Software
Commits
ebb072db
Commit
ebb072db
authored
8 months ago
by
Mehrsary
Browse files
Options
Downloads
Patches
Plain Diff
chore: Update docker-compose files with healthchecks for pht-keycloak service
parent
f22e6274
Branches
93-vault-initialization-unsealing-error-in-station-software
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
StationDeploymentFiles/docker-compose-dev.yml
+14
-5
14 additions, 5 deletions
StationDeploymentFiles/docker-compose-dev.yml
StationDeploymentFiles/docker-compose.yml
+13
-4
13 additions, 4 deletions
StationDeploymentFiles/docker-compose.yml
with
27 additions
and
9 deletions
StationDeploymentFiles/docker-compose-dev.yml
+
14
−
5
View file @
ebb072db
...
...
@@ -99,11 +99,15 @@ services:
networks
:
-
pht-net
-
metadata
depends_on
:
-
mongo
-
dind
-
vault
-
pht-keycloak
depends_on
:
mongo
:
condition
:
service_started
dind
:
condition
:
service_started
vault
:
condition
:
service_started
pht-keycloak
:
condition
:
service_healthy
restart
:
unless-stopped
vault
:
...
...
@@ -186,6 +190,11 @@ services:
aliases
:
-
pht-keycloak
restart
:
unless-stopped
healthcheck
:
test
:
[
"
CMD-SHELL"
,
"
exec
3<>/dev/tcp/127.0.0.1/8080;echo
-e
'GET
/health/ready
HTTP/1.1
\r\n
host:
http://localhost
\r\n
Connection:
close
\r\n\r\n
'
>&3;if
[
$?
-eq
0
];
then
echo
'Healthcheck
Successful';exit
0;else
echo
'Healthcheck
Failed';exit
1;fi;"
]
interval
:
10s
timeout
:
5s
retries
:
3
networks
:
pht-net
:
...
...
This diff is collapsed.
Click to expand it.
StationDeploymentFiles/docker-compose.yml
+
13
−
4
View file @
ebb072db
...
...
@@ -76,10 +76,14 @@ services:
-
pht-net
-
metadata
depends_on
:
-
mongo
-
dind
-
vault
-
pht-keycloak
mongo
:
condition
:
service_started
dind
:
condition
:
service_started
vault
:
condition
:
service_started
pht-keycloak
:
condition
:
service_healthy
restart
:
unless-stopped
vault
:
...
...
@@ -173,6 +177,11 @@ services:
aliases
:
-
pht-keycloak
restart
:
unless-stopped
healthcheck
:
test
:
[
"
CMD-SHELL"
,
"
exec
3<>/dev/tcp/127.0.0.1/8080;echo
-e
'GET
/health/ready
HTTP/1.1
\r\n
host:
http://localhost
\r\n
Connection:
close
\r\n\r\n
'
>&3;if
[
$?
-eq
0
];
then
echo
'Healthcheck
Successful';exit
0;else
echo
'Healthcheck
Failed';exit
1;fi;"
]
interval
:
10s
timeout
:
5s
retries
:
3
networks
:
pht-net
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment