Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
anis
anis-server
Commits
ba5e6fcd
Commit
ba5e6fcd
authored
Nov 06, 2020
by
François Agneray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keycloak installed and functional
parent
41f4acb9
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2130 additions
and
0 deletions
+2130
-0
conf-dev/init-postgres.sh
conf-dev/init-postgres.sh
+2
-0
conf-dev/keycloak-anis-realm.json
conf-dev/keycloak-anis-realm.json
+2105
-0
docker-compose.yml
docker-compose.yml
+23
-0
No files found.
conf-dev/init-postgres.sh
View file @
ba5e6fcd
...
...
@@ -3,8 +3,10 @@ set -e
psql
-v
ON_ERROR_STOP
=
1
--username
"
$POSTGRES_USER
"
--dbname
"
$POSTGRES_DB
"
<<-
EOSQL
CREATE USER anis LOGIN PASSWORD 'anis';
CREATE USER keycloak LOGIN PASSWORD 'keycloak';
CREATE DATABASE anis_metamodel;
CREATE DATABASE anis_test;
CREATE DATABASE keycloakdb;
GRANT ALL PRIVILEGES ON DATABASE anis_metamodel TO anis;
GRANT ALL PRIVILEGES ON DATABASE anis_test TO anis;
EOSQL
...
...
conf-dev/keycloak-anis-realm.json
0 → 100644
View file @
ba5e6fcd
This diff is collapsed.
Click to expand it.
docker-compose.yml
View file @
ba5e6fcd
...
...
@@ -25,6 +25,24 @@ services:
-
./conf-dev/vhost.conf:/etc/apache2/sites-available/000-default.conf
-
./conf-dev/data-dev:/data/ASPIC
keycloak
:
image
:
jboss/keycloak
environment
:
DB_VENDOR
:
POSTGRES
DB_ADDR
:
db
DB_DATABASE
:
keycloakdb
DB_USER
:
keycloak
DB_PASSWORD
:
keycloak
DB_SCHEMA
:
public
KEYCLOAK_USER
:
admin
KEYCLOAK_PASSWORD
:
admin
KEYCLOAK_IMPORT
:
/tmp/keycloak-anis-realm.json
ports
:
-
8180:8180
volumes
:
-
./conf-dev/keycloak-anis-realm.json:/tmp/keycloak-anis-realm.json
command
:
-b 0.0.0.0 -Djboss.http.port=8180
db
:
image
:
postgres
environment
:
...
...
@@ -44,5 +62,10 @@ services:
ports
:
-
8083:8080
mailer
:
image
:
djfarrelly/maildev
ports
:
-
1080:80
volumes
:
pgdata
:
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment