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
c38c6c55
Commit
c38c6c55
authored
1 year ago
by
Elian Loraux
Browse files
Options
Downloads
Patches
Plain Diff
separate dev and prod environnement
Closes
#4
parent
3f8063b9
No related branches found
No related tags found
No related merge requests found
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
.env.sample.
+9
-1
9 additions, 1 deletion
.env.sample.
README.md
+1
-0
1 addition, 0 deletions
README.md
dev.yml
+13
-0
13 additions, 0 deletions
dev.yml
docker-compose.yml
+1
-7
1 addition, 7 deletions
docker-compose.yml
ports.yml
+1
-1
1 addition, 1 deletion
ports.yml
prod.yml
+14
-0
14 additions, 0 deletions
prod.yml
with
39 additions
and
9 deletions
.env.sample.
+
9
−
1
View file @
c38c6c55
COMPOSE_FILE=docker-compose.yml:traefik.yml
# Prod environnement
# COMPOSE_FILE=docker-compose.yml:prod.yml:traefik.yml
# Dev environnement (for port forwarding)
COMPOSE_FILE=docker-compose.yml:dev.yml:ports.yml
NAME=keycloak
NAME=keycloak
# Set localhost if you are in local
HOST=keycloak.FQDN
HOST=keycloak.FQDN
# In Dev environnement
PORT=8080
# KeyCloak
# KeyCloak
KC_ADMIN=admin
KC_ADMIN=admin
KC_ADMIN_PASSWD=
KC_ADMIN_PASSWD=
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
0
View file @
c38c6c55
...
@@ -17,6 +17,7 @@ To secure the first application, folow [this tutorial](https://www.keycloak.org/
...
@@ -17,6 +17,7 @@ To secure the first application, folow [this tutorial](https://www.keycloak.org/
### Prerequisites
### Prerequisites
set un dockerised
[
Dolibarr
](
https://gitlab.tetras-libre.fr/nocloud/docker/dolibarr
)
### Set up
### Set up
To set up SSO with dolibarr you need folow this insctruction :
To set up SSO with dolibarr you need folow this insctruction :
...
...
This diff is collapsed.
Click to expand it.
dev.yml
0 → 100644
+
13
−
0
View file @
c38c6c55
version
:
"
3"
services
:
keycloak
:
environment
:
# cf https://github.com/keycloak/keycloak/issues/11170 for below variable
KC_HOSTNAME_URL
:
http://${HOST}:${PORT}
KC_HOSTNAME_ADMIN_URL
:
http://${HOST}:${PORT}
# http-enabled=true if traefik is use
command
:
-
"
start-dev"
-
"
--import-realm"
-
"
--verbose"
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
1
−
7
View file @
c38c6c55
...
@@ -7,19 +7,13 @@ services:
...
@@ -7,19 +7,13 @@ services:
environment
:
environment
:
KEYCLOAK_ADMIN
:
${KC_ADMIN}
KEYCLOAK_ADMIN
:
${KC_ADMIN}
KEYCLOAK_ADMIN_PASSWORD
:
${KC_ADMIN_PASSWD}
KEYCLOAK_ADMIN_PASSWORD
:
${KC_ADMIN_PASSWD}
# cf https://github.com/keycloak/keycloak/issues/11170 for below variable
KC_HOSTNAME_URL
:
https://${HOST}
KC_HOSTNAME_ADMIN_URL
:
https://${HOST}
# Database
# Database
KC_DB
:
mariadb
KC_DB
:
mariadb
KC_DB_SCHEMA
:
keycloak
KC_DB_SCHEMA
:
keycloak
KC_DB_USERNAME
:
keycloak
KC_DB_USERNAME
:
keycloak
KC_DB_PASSWORD
:
${MARIADB_PASS}
KC_DB_PASSWORD
:
${MARIADB_PASS}
KC_DB_URL_HOST
:
mariadb
KC_DB_URL_HOST
:
mariadb
restart
:
${RESTART}
command
:
[
"
start-dev"
,
"
--import-realm"
,
"
--verbose"
]
depends_on
:
depends_on
:
-
mariadb
-
mariadb
restart
:
${RESTART}
restart
:
${RESTART}
...
...
This diff is collapsed.
Click to expand it.
ports.yml
+
1
−
1
View file @
c38c6c55
...
@@ -3,4 +3,4 @@ version: "3"
...
@@ -3,4 +3,4 @@ version: "3"
services
:
services
:
keycloak
:
keycloak
:
ports
:
ports
:
-
8080
:8080
-
"
${PORT}
:8080
"
This diff is collapsed.
Click to expand it.
prod.yml
0 → 100644
+
14
−
0
View file @
c38c6c55
version
:
"
3"
services
:
keycloak
:
environment
:
# cf https://github.com/keycloak/keycloak/issues/11170 for below variable
KC_HOSTNAME_URL
:
https://${HOST}
KC_HOSTNAME_ADMIN_URL
:
https://${HOST}
# http-enabled=true if traefik is use
command
:
-
"
start"
-
"
--http-enabled=true"
-
"
--import-realm"
-
"
--verbose"
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