-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-development-authenabled.yml
86 lines (86 loc) · 3.08 KB
/
docker-compose-development-authenabled.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Development environment definition
# Author: Manuel Bernal Llinares
version: "3.5"
services:
redis:
image: redis:4.0.8-alpine
ports:
- "6379:6379"
fakesmtp:
image: digiplant/fake-smtp
ports:
- "1025:25"
volumes:
- ./tmp/fakesmtp:/var/mail
hqregistrypostgresql:
image: postgres
environment:
- POSTGRES_DB=devdatabase
- POSTGRES_USER=devusername
- POSTGRES_PASSWORD=devpassword
volumes:
- "../db/registry:/docker-entrypoint-initdb.d"
ports:
- "5430:5432"
hqmiridpostgresql:
image: postgres
environment:
- POSTGRES_DB=devdatabase
- POSTGRES_USER=devusername
- POSTGRES_PASSWORD=devpassword
ports:
- "5431:5432"
volumes:
- "../db/mirid-controller:/docker-entrypoint-initdb.d"
keycloakpostgresql:
image: postgres
environment:
- POSTGRES_DB=devdatabase
- POSTGRES_USER=devusername
- POSTGRES_PASSWORD=devpassword
ports:
- "5432:5432"
- "9990:9990"
localkeycloak:
image: jboss/keycloak:6.0.1
volumes:
- ./data/keycloak:/srv/keycloak
environment:
- KEYCLOAK_USER=devadmin
- KEYCLOAK_PASSWORD=devpassword
- DB_VENDOR=postgres
- DB_ADDR=keycloakpostgresql
- DB_DATABASE=devdatabase
- DB_USER=devusername
- DB_PASSWORD=devpassword
- KEYCLOAK_IMPORT=/srv/keycloak/realm-idorg-dev.json
ports:
- "8080:8080"
depends_on:
- keycloakpostgresql
healthcheck:
test: curl -f http://localhost:8080/auth/
start_period: 30s
hqmiridcontroller:
image: identifiersorg/cloud-hq-ws-mirid-controller
environment:
- HQ_WS_MIRID_CONTROLLER_CONFIG_JDBC_URL=jdbc:postgresql://hqmiridpostgresql:5432/devdatabase
- HQ_WS_MIRID_CONTROLLER_CONFIG_RDBMS_USERNAME=devusername
- HQ_WS_MIRID_CONTROLLER_CONFIG_RDBMS_PASSWORD:devpassword
- HQ_WS_MIRID_CONTROLLER_CONFIG_REDIS_HOST=redis
- HQ_WS_MIRID_CONTROLLER_CONFIG_REDIS_PORT=6379
- HQ_WS_MIRID_CONTROLLER_CONFIG_APPLICATION_ACTIVE_PROFILE=authenabled
- HQ_WS_MIRID_CONTROLLER_CONFIG_SECURITY_OAUTH2_CLIENT_PROVIDER_KEYCLOAK_ISSUERURI=http://localkeycloak:8080/auth/realms/idorg/
- HQ_WS_MIRID_CONTROLLER_CONFIG_SECURITY_OAUTH2_CLIENT_REGISTRATION_KEYCLOAK_CLIENTID=hq-mirid-controller
- HQ_WS_MIRID_CONTROLLER_CONFIG_SECURITY_OAUTH2_CLIENT_REGISTRATION_KEYCLOAK_CLIENTSECRET=secrety-secret
- HQ_WS_MIRID_CONTROLLER_CONFIG_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUERURI=http://localkeycloak:8080/auth/realms/idorg
ports:
- "8181:8181"
depends_on:
- redis
- hqmiridpostgresql
- localkeycloak
restart: on-failure
networks:
default:
name: hqregistrynet