-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
197 lines (188 loc) · 5.43 KB
/
docker-compose.yaml
File metadata and controls
197 lines (188 loc) · 5.43 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
name: AccessPilot
volumes:
postgres:
redis:
minio:
mailhog:
services:
postgres:
container_name: accessPilot_PostgreSQL
image: postgres:18-alpine
hostname: postgres
restart: unless-stopped
healthcheck:
test: pg_isready -U postgres -d postgres
interval: 10s
timeout: 3s
retries: 3
volumes:
- type: volume
source: postgres
target: /var/lib/postgresql/18/docker
- type: bind
source: ./initdb
target: /docker-entrypoint-initdb.d
read_only: true
consistency: consistent
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
redis:
container_name: accessPilot_Redis
image: redis:8
hostname: redis
restart: unless-stopped
volumes:
- type: volume
source: redis
target: /data
ports:
- "6379:6379"
minio:
container_name: accessPilot_MinIO
image: quay.io/minio/minio:latest
hostname: minio
restart: unless-stopped
volumes:
- type: volume
source: minio
target: /data
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=abc12345
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001"
mailhog:
container_name: accessPilot_Mailhog
image: minidocks/mailhog:latest
hostname: mailhog
restart: unless-stopped
volumes:
- type: volume
source: mailhog
target: /maildir
environment:
- MH_HOSTNAME=mailhog
- MH_STORAGE=maildir
- MH_MAILDIR_PATH=/maildir
ports:
- "1025:25"
- "7025:80"
keycloak:
container_name: accessPilot_Keycloak
image: quay.io/keycloak/keycloak:26.6
hostname: keycloak
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
mailhog:
condition: service_started
volumes:
- type: bind
source: ./accesspilot.json
target: /opt/keycloak/data/import/realm-export.json
read_only: true
consistency: consistent
healthcheck:
test: /opt/keycloak/bin/kcadm.sh config credentials --server http://localhost:8080/ --realm master --user admin --password 123456 && /opt/keycloak/bin/kcadm.sh update realms/master -s sslRequired=NONE
interval: 10s
timeout: 3s
retries: 6
start_period: 5s
environment:
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: 123456
KC_HTTP_HOST: 0.0.0.0
KC_HEALTH_ENABLED: true
KC_METRICS_ENABLED: false
KC_DB: postgres
KC_DB_URL_HOST: postgres
KC_DB_URL_PORT: 5432
KC_DB_URL_DATABASE: keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: keycloak
KC_DB_POOL_MIN_SIZE: 0
KC_DB_POOL_MAX_SIZE: 10
KC_DB_POOL_INITIAL_SIZE: 1
KC_LOG_CONSOLE_COLOR: true
KC_LOG_LEVEL: INFO
KC_CACHE: local
command:
- "start-dev"
- "--import-realm"
ports:
- "7080:8080"
access-pilot-backend:
container_name: accessPilot_Backend
image: ghcr.io/getinsight-it/access-pilot-backend:develop
pull_policy: always
hostname: backend
restart: unless-stopped
command:
- "./bootstrap/start.sh"
healthcheck:
test: curl -fs http://localhost:8080/actuator/health
depends_on:
postgres:
condition: service_healthy
keycloak:
condition: service_healthy
redis:
condition: service_started
mailhog:
condition: service_started
minio:
condition: service_started
environment:
PROVIDER_KEYCLOAK_URL: http://keycloak:8080
PROVIDER_KEYCLOAK_REALM: access-pilot
PROVIDER_KEYCLOAK_CLIENT-ID: accesspilot-backend
PROVIDER_KEYCLOAK_CLIENT-SECRET: b0h3gPFmK79ZwcZcvZkKQPHfjNerywqV
JWT_AUTH_CONVERTER_RESOURCE-ID: accesspilot-backend
SPRING_DOCKER_COMPOSE_ENABLED: false
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/db_accesspilot_dev
SPRING_DATASOURCE_USERNAME: db_accesspilot_user
SPRING_DATASOURCE_PASSWORD: db_accesspilot_user_pw
MAIL_HOST: mailhog
MAIL_PORT: 25
SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH: false
SPRING_DATA_REDIS_HOST: redis
SPRING_DATA_REDIS_PORT: 6379
MINIO_ENDPOINT: http://minio:9000
MINIO_ACCESSKEY: admin
MINIO_SECRETKEY: abc12345
SENTRY_ENABLED: true
SENTRY_ENVIRONMENT: gh_exemplo
CORS_ALLOWED_ORIGIN_PATTERN: '*'
JWT_AUTH_CONVERTER_ALLOWED_ISSUERS: http://localhost:7080/realms/access-pilot
SPRINGDOC_SWAGGER_UI_OAUTH_AUTHORIZATION_URL: http://localhost:7080/realms/access-pilot/protocol/openid-connect/auth
SPRINGDOC_SWAGGER_UI_OAUTH_TOKEN_URL: http://localhost:7080/realms/access-pilot/protocol/openid-connect/token
ports:
- "8080:8080"
volumes:
- type: bind
source: ./bootstrap/forwarding.conf
target: /etc/rinetd.conf
- type: bind
source: ./bootstrap/start.sh
target: /usr/local/app/bootstrap/start.sh
access-pilot-frontend:
container_name: accessPilot_Frontend
image: ghcr.io/getinsight-it/access-pilot-frontend:develop
pull_policy: always
depends_on:
access-pilot-backend:
condition: service_healthy
volumes:
- type: bind
source: ./env.js
target: /usr/share/nginx/html/assets/env/env.js
read_only: true
consistency: consistent
ports:
- "5173:80"