Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Keycloak
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
Keycloak
Commits
e9550ceb
Commit
e9550ceb
authored
2 months ago
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
add healthcheck in prod
parent
3adc99a1
Branches
sysadmin-154-healthcheck
No related tags found
1 merge request
!4
Sysadmin 154 healthcheck
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.env.sample
+1
-0
1 addition, 0 deletions
.env.sample
prod.yml
+1
-0
1 addition, 0 deletions
prod.yml
traefik.yml
+7
-0
7 additions, 0 deletions
traefik.yml
with
9 additions
and
0 deletions
.env.sample
+
1
−
0
View file @
e9550ceb
...
@@ -7,6 +7,7 @@ COMPOSE_FILE=docker-compose.yml:prod.yml:traefik.yml
...
@@ -7,6 +7,7 @@ COMPOSE_FILE=docker-compose.yml:prod.yml:traefik.yml
NAME=keycloak
NAME=keycloak
# Set localhost if you are in local
# Set localhost if you are in local
HOST=keycloak.FQDN
HOST=keycloak.FQDN
HOST_HEALTHCHECK=keycloak-health.FQDN
# In Dev environnement
# In Dev environnement
PORT=8080
PORT=8080
...
...
This diff is collapsed.
Click to expand it.
prod.yml
+
1
−
0
View file @
e9550ceb
...
@@ -13,3 +13,4 @@ services:
...
@@ -13,3 +13,4 @@ services:
-
"
--import-realm"
-
"
--import-realm"
-
"
--verbose"
-
"
--verbose"
-
"
--hostname=https://${HOST}"
-
"
--hostname=https://${HOST}"
-
"
--health-enabled=true"
This diff is collapsed.
Click to expand it.
traefik.yml
+
7
−
0
View file @
e9550ceb
...
@@ -15,6 +15,13 @@ services:
...
@@ -15,6 +15,13 @@ services:
-
"
traefik.http.routers.${NAME}.service=${NAME}"
-
"
traefik.http.routers.${NAME}.service=${NAME}"
-
"
traefik.http.services.${NAME}.loadbalancer.server.port=8080"
-
"
traefik.http.services.${NAME}.loadbalancer.server.port=8080"
-
"
traefik.http.routers.${NAME}-healthcheck.rule=Host(`${HOST_HEALTHCHECK}`)"
-
"
traefik.http.routers.${NAME}-healthcheck.tls.certresolver=myresolver"
-
"
traefik.http.routers.${NAME}-healthcheck.entrypoints=web,websecure"
-
"
traefik.http.routers.${NAME}-healthcheck.middlewares=hardening@docker"
-
"
traefik.http.routers.${NAME}-healthcheck.service=${NAME}-healthcheck"
-
"
traefik.http.services.${NAME}-healthcheck.loadbalancer.server.port=9000"
networks
:
networks
:
traefik
:
traefik
:
external
:
true
external
:
true
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