Commit ba5e6fcd authored by François Agneray's avatar François Agneray

Keycloak installed and functional

parent 41f4acb9
......@@ -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
......
This diff is collapsed.
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment