-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
114 lines (106 loc) · 4.06 KB
/
docker-compose.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
version: '3.2'
services:
#---------------------------------------------------------------------------#
# Management Portal #
#---------------------------------------------------------------------------#
managementportal:
image: radarbase/management-portal:2.0.0
depends_on:
- mp-postgresql
environment:
SPRING_PROFILES_ACTIVE: prod
SPRING_DATASOURCE_URL: jdbc:postgresql://mp-postgresql:5432/managementportal
SPRING_DATASOURCE_USERNAME: radarcns
SPRING_DATASOURCE_PASSWORD: radarcns
MANAGEMENTPORTAL_FRONTEND_CLIENT_SECRET: "testMe"
MANAGEMENTPORTAL_COMMON_BASE_URL: http://localhost:8080/managementportal
MANAGEMENTPORTAL_COMMON_MANAGEMENT_PORTAL_BASE_URL: http://localhost:8080/managementportal
MANAGEMENTPORTAL_OAUTH_CLIENTS_FILE: /mp-includes/config/oauth_client_details.csv
MANAGEMENTPORTAL_CATALOGUE_SERVER_ENABLE_AUTO_IMPORT: 'false'
MANAGEMENTPORTAL_OAUTH_SIGNING_KEY_ALIAS: 'radarbase-managementportal-ec'
SERVER_SERVLET_SESSION_COOKIE_SECURE: "false"
JAVA_OPTS: -Xmx256m # maximum heap size for the JVM running ManagementPortal, increase this as necessary
volumes:
- ./docker/etc/managementportal/:/mp-includes/config
labels:
- "traefik.http.routers.managementportal.rule=PathPrefix(`/managementportal`)"
- "traefik.http.services.managementportal.loadbalancer.server.port=8080"
mp-postgresql:
image: bitnami/postgresql:15
environment:
- POSTGRESQL_USERNAME=radarcns
- POSTGRESQL_PASSWORD=radarcns
- POSTGRESQL_DATABASE=managementportal
labels:
- "traefik.enable=false"
rest-auth-postgresql:
image: bitnami/postgresql:15
environment:
- POSTGRESQL_USERNAME=radarcns
- POSTGRESQL_PASSWORD=radarcns
- POSTGRESQL_DATABASE=restsourceauthorizer
labels:
- "traefik.enable=false"
radar-rest-sources-backend:
image: radarbase/radar-rest-source-auth-backend:dev
build:
context: .
dockerfile: authorizer-app-backend/Dockerfile
depends_on:
- rest-auth-postgresql
- managementportal
volumes:
- ./docker/etc/rest-source-authorizer/authorizer.yml:/etc/authorizer-app-backend/authorizer.yml
command: ["authorizer-app-backend", "/etc/authorizer-app-backend/authorizer.yml"]
healthcheck:
test: ["CMD", "curl", "--fail-with-body", "http://localhost:8085/rest-sources/backend/health"]
interval: 10s
timeout: 5s
retries: 3
labels:
- "traefik.http.routers.backend.rule=PathPrefix(`/rest-sources/backend`)"
- "traefik.http.services.backend.loadbalancer.server.port=8085"
radar-rest-sources-authorizer:
image: radarbase/radar-rest-source-authorizer:dev
build:
context: authorizer-app
dockerfile: Dockerfile
depends_on:
- radar-rest-sources-backend
- managementportal
- redis
# ports:
# - "8080:80"
environment:
BASE_HREF: "/rest-sources/authorizer/"
BACKEND_BASE_URL: "http://localhost:8080/rest-sources/backend"
VALIDATE: "true"
AUTH_GRANT_TYPE: "authorization_code"
AUTH_CLIENT_ID: "radar_rest_sources_authorizer"
AUTH_CLIENT_SECRET: ""
AUTH_CALLBACK_URL: "http://localhost:8080/rest-sources/authorizer/login"
AUTH_URI: "http://localhost:8080/managementportal/oauth"
healthcheck:
test: ["CMD", "curl", "--fail-with-body", "http://localhost:8080/rest-sources/authorizer"]
interval: 10s
timeout: 5s
retries: 3
labels:
- "traefik.http.routers.rest-auth.rule=PathPrefix(`/rest-sources/authorizer`)"
- "traefik.http.services.rest-auth.loadbalancer.server.port=8080"
traefik:
image: traefik:2.9
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --api.insecure=true --providers.docker
ports:
- "8080:80"
redis:
image: redis:latest
restart: on-failure
command: ["redis-server","--bind","redis","127.0.0.1", "--port","6379"]
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes