generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
152 lines (146 loc) · 3.61 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
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
version: '3'
services:
keycloak:
image: quay.io/keycloak/keycloak:24.0
ports:
- "8880:8080"
environment:
KC_HOSTNAME: localhost
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://pg:5432/keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: keycloak
KC_HEALTH_ENABLED: "true"
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
volumes:
- ./dev_setup/keycloak/regtech-test-realm.json:/opt/keycloak/data/import/regtech-test-realm.json:ro
- ./dev_setup/keycloak/healthcheck.sh:/mnt/healthcheck.sh
command: start-dev --import-realm
healthcheck:
test: ["CMD-SHELL", "bash /mnt/healthcheck.sh"]
interval: 5s
timeout: 2s
retries: 15
depends_on:
pg:
condition: service_healthy
profiles: [locust, backend]
pg:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: admin
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- db:/var/lib/postgresql/data
- ./dev_setup/db/:/docker-entrypoint-initdb.d/:ro
profiles: [locust, backend]
user-fi:
platform: linux/amd64
build: ../regtech-user-fi-management
ports:
- 8881:8888
env_file:
- ./dev_setup/common.env
- ./dev_setup/user-fi.local.env
healthcheck:
test: ["CMD-SHELL", "wget --output-document - http://0.0.0.0:8888/docs"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
keycloak:
condition: service_healthy
pg:
condition: service_healthy
profiles: [backend]
filing:
build: ../sbl-filing-api
ports:
- 8882:8888
env_file:
- ./dev_setup/common.env
- ./dev_setup/filing.local.env
healthcheck:
test: ["CMD-SHELL", "wget --output-document - http://0.0.0.0:8888/docs"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
keycloak:
condition: service_healthy
pg:
condition: service_healthy
volumes:
- /tmp/filing_uploads:/usr/app/upload/upload
profiles: [locust, backend]
mail-api:
platform: linux/amd64
build: ../regtech-mail-api
depends_on:
keycloak:
condition: service_healthy
ports:
- 8765:8765
env_file:
- ./dev_setup/common.env
environment:
SMTP_HOST: mailpit
SMTP_PORT: 1025
FROM_ADDR: noreply@localhost.localdomain
TO: cases@localhost.localdomain
profiles: [backend]
mailpit:
image: axllent/mailpit
ports:
- 8025:8025
- 1025:1025
environment:
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
profiles: [backend]
sbl-locust:
build: ../sbl-filing-api/locust-load-test
ports:
- 8089:8089
env_file:
- ./dev_setup/common.env
environment:
MODE: single
USER_INDEX: 100
SBLAR_REPO: https://github.com/repos/cfpb/sbl-test-data/contents/locust-sblars
profiles: [locust]
sbl-frontend:
build: ../sbl-frontend
ports:
- 8898:8080
env_file:
- ./dev_setup/frontend.local.env
profiles: [frontend]
cleanup:
platform: linux/amd64
build: ../regtech-cleanup-api
ports:
- 8883:8888
env_file:
- ./dev_setup/common.env
- ./dev_setup/filing.local.env
- ./dev_setup/user-fi.local.env
- ./dev_setup/cleanup.env
volumes:
- /tmp/filing_uploads:/usr/app/upload/upload
depends_on:
filing:
condition: service_healthy
user-fi:
condition: service_healthy
profiles: [backend]
volumes:
db:
driver: local