This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
100 lines (93 loc) · 2.72 KB
/
docker-compose.yaml
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
version: "3"
services:
keycloak:
image: quay.io/keycloak/keycloak:12.0.4
ports:
- 8180:8080
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
KEYCLOAK_IMPORT: /tmp/openubl-realm.json
DB_VENDOR: h2
volumes:
- ./openubl-realm.json:/tmp/openubl-realm.json:z
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/realms/openubl"]
interval: 10s
timeout: 5s
retries: 5
artemis:
image: vromero/activemq-artemis:2.8.0-alpine
ports:
- "8161:8161"
- "61616:61616"
- "5672:5672"
environment:
ARTEMIS_USERNAME: openubl
ARTEMIS_PASSWORD: openubl
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8161/console"]
interval: 10s
timeout: 5s
retries: 5
minio:
image: minio/minio:RELEASE.2021-03-17T02-33-02Z
volumes:
- minio-data:/data
ports:
- "9000:9000"
environment:
MINIO_ACCESS_KEY: BQA2GEXO711FVBVXDWKM
MINIO_SECRET_KEY: uvgz3LCwWM3e400cDkQIH/y1Y4xgU4iV91CwFSPC
command: server /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
ublhub-db:
image: debezium/postgres:12
ports:
- 5432:5432
environment:
- POSTGRES_USER=xsender_username
- POSTGRES_PASSWORD=xsender_password
- POSTGRES_DB=xsender_db
healthcheck:
test: ["CMD-SHELL", "pg_isready -U xsender_username -d xsender_db"]
interval: 2s
timeout: 20s
retries: 10
ublhub:
image: quay.io/projectopenubl/ublhub:master
ports:
- 8081:8080
environment:
QUARKUS_HTTP_PORT: 8080
QUARKUS_DATASOURCE_USERNAME: xsender_username
QUARKUS_DATASOURCE_PASSWORD: xsender_password
QUARKUS_DATASOURCE_JDBC_URL: jdbc:postgresql://xsender-db:5432/xsender_db
QUARKUS_OIDC_AUTH_SERVER_URL: http://keycloak:8080/auth/realms/openubl
QUARKUS_OIDC_CLIENT_ID: xsender-api
QUARKUS_OIDC_CREDENTIALS_SECRET: secret
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
OPENUBL_STORAGE_S3_HOST: http://minio:9000
OPENUBL_STORAGE_S3_REGION: us-east-1
OPENUBL_STORAGE_BUCKET: project-openubl
OPENUBL_STORAGE_ACCESS_KEY: BQA2GEXO711FVBVXDWKM
OPENUBL_STORAGE_SECRET_ACCESS_KEY: uvgz3LCwWM3e400cDkQIH/y1Y4xgU4iV91CwFSPC
OPENUBL_STORAGE_TYPE: s3
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/q/health"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
keycloak:
condition: service_healthy
artemis:
condition: service_healthy
xsender-db:
condition: service_healthy
volumes:
minio-data: