generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
163 lines (158 loc) · 4.72 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
153
154
155
156
157
158
159
160
161
162
163
services:
keycloak:
image: quay.io/keycloak/keycloak:26.0.5
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
image: sbl-project-user-fi:latest
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/v1/institutions/healthcheck"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
keycloak:
condition: service_healthy
pg:
condition: service_healthy
profiles: [backend]
filing:
platform: linux/amd64
image: sbl-project-filing:latest
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/v1/filing/healthcheck"]
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
image: sbl-project-mail-api:latest
build: ../regtech-mail-api
healthcheck:
test: ["CMD-SHELL", "wget --output-document - http://0.0.0.0:8765/public/healthcheck"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
keycloak:
condition: service_healthy
ports:
- 8765:8765
env_file:
- ./dev_setup/common.env
environment:
SMTP_HOST: mailpit
SMTP_PORT: 1025
FROM_ADDR: [email protected]
BETA_BODY_TEMPLATE: "Congratulations! This email confirms that {signer_name} submitted a filing on {formatted_date}. The confirmation number for this filing is {confirmation_id}.{line_break}The beta platform is for testing purposes only and user-supplied data may be removed at any time. Email our support staff at [email protected] to share feedback or return to the platform to upload a new file and continue testing."
PROD_BODY_TEMPLATE: "Congratulations! This email confirms that {signer_name} submitted a filing on {formatted_date}. The confirmation number for this filing is {confirmation_id}.{line_break}If you have any questions or need additional support, email our support staff at [email protected]."
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:
- 8889:8089
env_file:
- ./dev_setup/common.env
environment:
MODE: single
USER_INDEX: 100
SBLAR_REPO: https://api.github.com/repos/cfpb/sbl-test-data/contents/locust-sblars
profiles: [locust]
sbl-frontend:
image: sbl-project-sbl-frontend:latest
build: ../sbl-frontend
ports:
- 8898:8080
env_file:
- ./dev_setup/frontend.local.env
profiles: [frontend]
cleanup:
platform: linux/amd64
image: sbl-project-cleanup:latest
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