Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
naming-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Anders Harrisson
naming-backend
Commits
d40a200c
Commit
d40a200c
authored
2 years ago
by
Anders Harrisson
Browse files
Options
Downloads
Patches
Plain Diff
Set security constraints based on HTTP method
parent
4db87c15
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#120208
failed
2 years ago
Stage: compile
Stage: test
Stage: package
Stage: image
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-compose.yml
+31
-5
31 additions, 5 deletions
docker-compose.yml
with
31 additions
and
5 deletions
docker-compose.yml
+
31
−
5
View file @
d40a200c
...
...
@@ -5,12 +5,29 @@
version
:
'
3.7'
services
:
naming
:
build
:
.
/
build
:
.
ports
:
-
"
8080:8083"
depends_on
:
-
postgres
-
keycloak
command
:
"
java
-jar
/naming/naming-backend.jar"
environment
:
keycloak.auth-server-url
:
http://keycloak:8080
keycloak.realm
:
test
keycloak.resource
:
naming
keycloak.security-constraints[0].authRoles[0]
:
naming-user
keycloak.security-constraints[0].authRoles[1]
:
naming-admin
keycloak.security-constraints[0].securityCollections[0].patterns[0]
:
/api/v1/names
keycloak.security-constraints[0].securityCollections[0].methods[0]
:
GET
keycloak.security-constraints[1].authRoles[0]
:
naming-admin
keycloak.security-constraints[1].securityCollections[0].patterns[0]
:
/api/v1/names
keycloak.security-constraints[1].securityCollections[0].methods[0]
:
POST
keycloak.principal-attribute
:
preferred_username
keycloak.use-resource-role-mappings
:
"
true"
keycloak.enabled
:
"
true"
logging.level.root
:
INFO
logging.level.org.apache.catalina.realm
:
DEBUG
postgres
:
container_name
:
"
postgres"
...
...
@@ -22,8 +39,17 @@ services:
POSTGRES_USER
:
discs_names
POSTGRES_PASSWORD
:
discs_names
PGDATA
:
/var/lib/postgresql/data/pgdata
volumes
:
-
naming-data:/var/lib/postgresql/data/pgdata
volumes
:
naming-data
:
keycloak
:
image
:
quay.io/keycloak/keycloak:19.0.1
environment
:
KEYCLOAK_ADMIN
:
admin
KEYCLOAK_ADMIN_PASSWORD
:
password
DB_VENDOR
:
h2
ports
:
-
"
8088:8080"
command
:
-
start-dev
-
--import-realm
volumes
:
-
./src/test/resources/keycloak/test-realm.json:/opt/keycloak/data/import/test-realm.json
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