-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
163 lines (162 loc) · 3.74 KB
/
Copy pathdocker-compose.yml
File metadata and controls
163 lines (162 loc) · 3.74 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
services:
#
# OSIA Services
#
enrollment:
build:
context: enrollment
args:
D4R6Y: ${D4R6Y}
PIP_CONF: ${PIP_CONF}
APK_ARGS: ${APK_ARGS}
image: osia/enrollment
environment:
ENROLLMENT_CUSTO_FILENAME: "/custo/enrollment.yaml"
ENROLLMENT_NOTIFICATION_URL: "http://notification:8080"
ENROLLMENT_DATABASE_URL: "postgresql+psycopg2://enrollment:EnrollmentSecret@postgres/osiadb"
volumes:
- ${PWD}/custo:/custo
ports:
- "8000:8080"
links:
- notification
- postgres
depends_on:
- notification
- postgres
restart: on-failure
pr:
build:
context: pr
args:
D4R6Y: ${D4R6Y}
PIP_CONF: ${PIP_CONF}
APK_ARGS: ${APK_ARGS}
image: osia/pr
environment:
PR_CUSTO_FILENAME: "/custo/pr.yaml"
PR_DATABASE_URL: "postgresql+psycopg2://pr:PRSecret@postgres/osiadb"
volumes:
- ${PWD}/custo:/custo
ports:
- "8010:8080"
links:
- postgres
depends_on:
- postgres
restart: on-failure
uin:
build:
context: uin
args:
D4R6Y: ${D4R6Y}
PIP_CONF: ${PIP_CONF}
APK_ARGS: ${APK_ARGS}
image: osia/uin
ports:
- "8020:8080"
notification:
build:
context: notification
args:
D4R6Y: ${D4R6Y}
PIP_CONF: ${PIP_CONF}
APK_ARGS: ${APK_ARGS}
image: osia/notification
ports:
- "8030:8080"
environment:
REDIS_URL: "redis://redis/0"
ROOT_URL: "http://notification:8080/"
links:
- redis
depends_on:
- redis
#
# Middleware
#
orchestrator:
build:
context: orchestrator
args:
D4R6Y: ${D4R6Y}
PIP_CONF: ${PIP_CONF}
APK_ARGS: ${APK_ARGS}
image: osia/orchestrator
ports:
- "8040:8080"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
NOTIFICATION_URL: "http://notification:8080/"
MY_URL: "http://orchestrator:8080/"
REDIS_URL: "redis://redis/1"
CR_URL: "http://host.docker.internal:8080/v1/persons"
PR_URL: "http://pr:8080/v1/persons"
links:
- notification
- redis
depends_on:
- notification
- redis
#
# Databases
#
redis:
image: ${D4R6Y}redis:7.0.9-alpine
postgres:
image: ${D4R6Y}postgres:18.4-alpine3.24
environment:
- POSTGRES_DB=osiadb
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=SuperSecret
- TZ=Europe/Paris
volumes:
- ./pg_setup.sql:/docker-entrypoint-initdb.d/pg_setup.sql
pgadmin:
image: ${D4R6Y}dpage/pgadmin4:2026-06-18-3
ports:
- 9080:80
environment:
- PGADMIN_DEFAULT_EMAIL=osia@secureidentityalliance.org
- PGADMIN_DEFAULT_PASSWORD=OSIASecret
#
# Non-OSIA components, for testing, monitoring and demonstration
#
pr-portal:
build:
context: pr-portal
args:
D4R6Y: ${D4R6Y}
PIP_CONF: ${PIP_CONF}
APK_ARGS: ${APK_ARGS}
image: osia/pr-portal
environment:
- PR_URL=http://pr:8080
- UIN_URL=http://uin:8080
tty: true
ports:
- "8100:8080"
links:
- pr
- uin
prom:
image: ${D4R6Y}prom/prometheus:v3.13.1-distroless
volumes:
- ./monitoring:/osia
command: --config.file=/osia/prometheus.yml
# command: --config.file=/osia/prometheus.yml --log.level=debug
ports:
- "9090:9090"
links:
- enrollment
- pr
- uin
- notification
- orchestrator
graf:
image: ${D4R6Y}grafana/grafana:11.6.16
ports:
- "3000:3000"
links:
- prom