-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
175 lines (159 loc) · 5.49 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
164
165
166
167
168
169
170
171
172
173
174
175
version: '3'
services:
rabbitmq:
build: ./rabbitmq
environment:
# The RABBITMQ_DEFAULT_USER is used
# to connect to the web admin
RABBITMQ_DEFAULT_USER: "${RABBITMQ_USER}"
RABBITMQ_DEFAULT_PASS: "${RABBITMQ_PASS}"
RABBITMQ_LOGS: "WARNING"
networks:
- docker-network
ports:
- "15672:15672" # Web admin port
- "5672:5672" # Do not expose this port in production
ingestor:
build:
context: python
dockerfile: ingestor/Dockerfile-local
depends_on:
- rabbitmq
environment:
RABBITMQ_URL: "${RABBITMQ_URL}"
# The RABBITMQ_USER is used to submit
# events for processing
RABBITMQ_USER: "${RABBITMQ_USER}"
RABBITMQ_PASS: "${RABBITMQ_PASS}"
LOG_LEVEL: "INFO"
SECRET_KEY: "${SECRET_KEY}"
ENCRYPT_KEY: "${ENCRYPT_KEY}"
FLASK_BASIC_AUTH_USER: "${FLASK_BASIC_AUTH_USER}"
FLASK_BASIC_AUTH_PASS: "${FLASK_BASIC_AUTH_PASS}"
VIPS_API_USERNAME: "${VIPS_API_USERNAME}"
VIPS_API_PASSWORD: "${VIPS_API_PASSWORD}"
VIPS_API_ROOT_URL: "${VIPS_API_ROOT_URL}"
COMM_SERV_AUTH_URL: "${COMM_SERV_AUTH_URL}"
COMM_SERV_API_ROOT_URL: "${COMM_SERV_API_ROOT_URL}"
COMM_SERV_REALM: "${COMM_SERV_REALM}"
COMM_SERV_CLIENT_ID: "${COMM_SERV_CLIENT_ID}"
COMM_SERV_CLIENT_SECRET: "${COMM_SERV_CLIENT_SECRET}"
ADMIN_EMAIL_ADDRESS: "${ADMIN_EMAIL_ADDRESS}"
BCC_EMAIL_ADDRESSES: "${BCC_EMAIL_ADDRESSES}"
ENVIRONMENT: "${ENVIRONMENT}"
networks:
- docker-network
ports:
- "5000:5000"
validator:
build:
context: python
dockerfile: validator/Dockerfile-local
depends_on:
- rabbitmq
environment:
RABBITMQ_URL: "${RABBITMQ_URL}"
# The RABBITMQ_USER is used to watch for submitted
# events and validate them
RABBITMQ_USER: "${RABBITMQ_USER}"
RABBITMQ_PASS: "${RABBITMQ_PASS}"
LOG_LEVEL: "WARNING"
ENCRYPT_KEY: "${ENCRYPT_KEY}"
paybc-api:
build:
context: python
dockerfile: paybc_api/Dockerfile-local
volumes:
- "${LOCAL_DB_PATH}:${ABSOLUTE_DB_PATH}"
environment:
LOG_LEVEL: "INFO"
PAYBC_FLASK_SECRET: "${PAYBC_FLASK_SECRET}"
PAYBC_CLIENT_ID: "${PAYBC_CLIENT_ID}"
PAYBC_CLIENT_SECRET: "${PAYBC_CLIENT_SECRET}"
VIPS_API_USERNAME: "${VIPS_API_USERNAME}"
VIPS_API_PASSWORD: "${VIPS_API_PASSWORD}"
VIPS_API_ROOT_URL: "${VIPS_API_ROOT_URL}"
ABSOLUTE_DB_PATH: "${ABSOLUTE_DB_PATH}"
LOCAL_DB_PATH: "${LOCAL_DB_PATH}"
COMM_SERV_AUTH_URL: "${COMM_SERV_AUTH_URL}"
COMM_SERV_API_ROOT_URL: "${COMM_SERV_API_ROOT_URL}"
COMM_SERV_REALM: "${COMM_SERV_REALM}"
COMM_SERV_CLIENT_ID: "${COMM_SERV_CLIENT_ID}"
COMM_SERV_CLIENT_SECRET: "${COMM_SERV_CLIENT_SECRET}"
ADMIN_EMAIL_ADDRESS: "${ADMIN_EMAIL_ADDRESS}"
BCC_EMAIL_ADDRESSES: "${BCC_EMAIL_ADDRESSES}"
networks:
- docker-network
ports:
- "5001:5001"
form_handler:
build:
context: python
dockerfile: form_handler/Dockerfile-local
depends_on:
- rabbitmq
environment:
RABBITMQ_URL: "${RABBITMQ_URL}"
RABBITMQ_USER: "${RABBITMQ_USER}"
RABBITMQ_PASS: "${RABBITMQ_PASS}"
VIPS_API_USERNAME: "${VIPS_API_USERNAME}"
VIPS_API_PASSWORD: "${VIPS_API_PASSWORD}"
VIPS_API_ROOT_URL: "${VIPS_API_ROOT_URL}"
COMM_SERV_AUTH_URL: "${COMM_SERV_AUTH_URL}"
COMM_SERV_API_ROOT_URL: "${COMM_SERV_API_ROOT_URL}"
COMM_SERV_REALM: "${COMM_SERV_REALM}"
COMM_SERV_CLIENT_ID: "${COMM_SERV_CLIENT_ID}"
COMM_SERV_CLIENT_SECRET: "${COMM_SERV_CLIENT_SECRET}"
ADMIN_EMAIL_ADDRESS: "${ADMIN_EMAIL_ADDRESS}"
BCC_EMAIL_ADDRESSES: "${BCC_EMAIL_ADDRESSES}"
LOG_LEVEL: "INFO"
ENCRYPT_KEY: "${ENCRYPT_KEY}"
web_app:
build:
context: web_app
dockerfile: Dockerfile-local
depends_on:
- prohibition_web_svc
networks:
- docker-network
ports:
- "8080:5000"
prohibition_web_svc:
build:
context: python
dockerfile: prohibition_web_svc/Dockerfile-local
depends_on:
- icbc_mock_svc
environment:
FLASK_SECRET_KEY: "${FLASK_SECRET_KEY}"
ICBC_API_ROOT: "http://icbc_mock_svc:5000/vips/icbc"
ICBC_LOGIN_USER_ID: "${ICBC_LOGIN_USER_ID}"
ICBC_API_USERNAME: "${ICBC_API_USERNAME}"
ICBC_API_PASSWORD: "${ICBC_API_PASSWORD}"
ACCESS_CONTROL_ALLOW_ORIGIN: "${ACCESS_CONTROL_ALLOW_ORIGIN}"
LOG_LEVEL: "DEBUG"
KEYCLOAK_REALM: "${KEYCLOAK_REALM}"
KEYCLOAK_AUTH_URL: "${KEYCLOAK_AUTH_URL}"
KEYCLOAK_CLIENT_ID: "${KEYCLOAK_CLIENT_ID}"
ADMIN_USERNAME: "${ADMIN_USERNAME}"
FLASK_BASIC_AUTH_USER: "${FLASK_BASIC_AUTH_USER}"
FLASK_BASIC_AUTH_PASS: "${FLASK_BASIC_AUTH_PASS}"
networks:
- docker-network
ports:
- "5002:5000"
icbc_mock_svc:
build:
context: python
dockerfile: icbc_mock_svc/Dockerfile-local
environment:
FLASK_SECRET_KEY: "${FLASK_SECRET_KEY}"
ICBC_API_USERNAME: "${ICBC_API_USERNAME}"
ICBC_API_PASSWORD: "${ICBC_API_PASSWORD}"
LOG_LEVEL: "DEBUG"
networks:
- docker-network
ports:
- "5003:5000"
networks:
docker-network: