forked from ONDC-Official/seller-app-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-for-local.yaml
213 lines (201 loc) · 6.23 KB
/
docker-compose-for-local.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
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
version: '2.4'
services:
bpp-protocol-webserver:
build:
context: seller-app-protocol/webserver
dockerfile: dockerfile
container_name: bpp-protocol-webserver
depends_on:
- mongo
environment:
ENV: prod
BPP_PRIVATE_KEY: ${BPP_PRIVATE_KEY}
BPP_PUBLIC_KEY: ${BPP_PUBLIC_KEY}
BPP_UNIQUE_KEY_ID: ${BPP_UNIQUE_KEY_ID}
BPP_ID: ${BPP_ID}
BG_DEFAULT_URL: ${BG_DEFAULT_URL}
MONGO_DATABASE_HOST: ${MONGO_DATABASE_HOST}
REGISTRY_BASE_URL: ${REGISTRY_BASE_URL}
VERIFICATION_ENABLE: ${VERIFICATION_ENABLE}
expose:
- 5555
ports:
- 5555:5555
mongo:
image: mongo
restart: always
ports:
- 27017:27017
volumes:
- './data:/data/db'
seller:
build:
context: seller-app
dockerfile: sellerDocker
restart: "always"
environment:
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SMTP_AUTH_USERNAME: ${SMTP_AUTH_USERNAME}
SMTP_AUTH_PASSWORD: ${SMTP_AUTH_PASSWORD}
SMTP_EMAIL_SENDER: ${SMTP_EMAIL_SENDER}
SMTP_EXCEPTION_EMAIL_RECIPIENTS: ${SMTP_EXCEPTION_EMAIL_RECIPIENTS}
SMTP_EMAIL_TEMPLATE_HEADER_IMAGE_PATH: ""
MONGODB_DATABASE_HOST: mongodb://mongo
MONGODB_DATABASE_PORT: 27017
MONGODB_DATABASE_USERNAME: "root"
MONGODB_DATABASE_PASSWORD: "root"
MONGODB_DATABASE_NAME: "ondc-seller"
AUTH_ACCESS_JWT_SECRET: "wftd3hg5$g67h*fd5h6fbvcy6rtg5wftd3hg5$g67h*fd5xxx"
BASE_APP_NAMESPACE: "Seller"
BASE_APP_PORT: 3019
S3_VERSION: "v4"
S3_REGION: ${S3_REGION}
S3_BUCKET: ${S3_BUCKET}
INTRA_SERVICE_NOTIFICAION_SERVICE_URL: http://notification:3020
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
INTRA_SERVICE_SELLER_CLIENT_SERVICE_URL: http://seller-client:3001
MMI_CLIENT_SECRET: ${MMI_CLIENT_SECRET}
MMI_CLIENT_ID: ${MMI_CLIENT_ID}
MMI_ADVANCE_API_KEY: ${MMI_ADVANCE_API_KEY}
volumes:
- ./app:/srv/app
ports:
- '3019:3019'
depends_on:
- mongo
expose:
- 3019
notification:
build:
context: seller-app
dockerfile: notificationDocker
restart: "always"
environment:
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT}
SMTP_AUTH_USERNAME: ${SMTP_AUTH_USERNAME}
SMTP_AUTH_PASSWORD: ${SMTP_AUTH_PASSWORD}
SMTP_EMAIL_SENDER: ${SMTP_EMAIL_SENDER}
SMTP_EXCEPTION_EMAIL_RECIPIENTS: ${SMTP_EXCEPTION_EMAIL_RECIPIENTS}
SMTP_EMAIL_TEMPLATE_HEADER_IMAGE_PATH: ""
BASE_APP_NAMESPACE: "notification"
BASE_APP_PORT: 3020
AUTH_ACCESS_JWT_SECRET: ${AUTH_ACCESS_JWT_SECRET}
INTRA_SERVICE_NOTIFICAION_SERVICE_URL: http://notification:3020
INTRA_SERVICE_SELLER_CLIENT_SERVICE_URL: http://seller-client:3001
APP_URL: ${APP_URL}
volumes:
- ./app:/srv/app
ports:
- '3020:3020'
depends_on:
- mongo
expose:
- 3020
seller-client:
build:
context: seller-app
dockerfile: sellerApiDocker
restart: "always"
environment:
FIREBASE_SERVICE_ACCOUNT_JSON_PATH: lib/config/firebase-service-account.json
SELLER_SERVER_URL: http://seller:3019
NODE_ENV: production
STRAPI_API_TOKEN: ${STRAPI_API_TOKEN}
BPP_PRIVATE_KEY: ${BPP_PRIVATE_KEY}
BPP_PUBLIC_KEY: ${BPP_PUBLIC_KEY}
BPP_UNIQUE_KEY_ID: ${BPP_UNIQUE_KEY_ID}
BPP_ID: ${BPP_ID}
BPP_URI: ${BPP_URI}
DATABASE_HOST: postgres
DATABASE_PORT: 5432
DATABASE_NAME_SELLER_CLIENT: ${CLIENT_PG_DATABASE}
DATABASE_USERNAME: ${CLIENT_PG_USER}
DATABASE_PASSWORD: ${CLIENT_PG_PASSWORD}
LOGISTICS_DELIVERY_TYPE: ${LOGISTICS_DELIVERY_TYPE}
LOGISTICS_BAP_ID: ${LOGISTICS_BAP_ID}
volumes:
- ./app:/srv/app
ports:
- '3001:3001'
depends_on:
- seller
- postgres
postgres:
image: postgres
environment:
POSTGRES_DB: strapi
POSTGRES_USER: ${STRAPI_DATABASE_USERNAME}
POSTGRES_PASSWORD: ${STRAPI_DATABASE_PASSWORD}
volumes:
- ./postgres_init_scripts/:/docker-entrypoint-initdb.d/
- ./data/postgres:/var/lib/postgresql/data
nginx:
build:
context: seller-app-frontend
dockerfile: DockerfileWithoutSSL
args:
REACT_APP_BASE_URL: ${REACT_APP_BASE_URL}
REACT_APP_FIREBASE_API_KEY: ${REACT_APP_FIREBASE_API_KEY}
REACT_APP_FIREBASE_AUTH_DOMAIN: ${REACT_APP_FIREBASE_AUTH_DOMAIN}
REACT_APP_SELLER_BACKEND_URL: ${REACT_APP_SELLER_BACKEND_URL}
restart: "always"
environment:
REACT_APP_BASE_URL: ${REACT_APP_BASE_URL}
REACT_APP_FIREBASE_API_KEY: ${REACT_APP_FIREBASE_API_KEY}
REACT_APP_FIREBASE_AUTH_DOMAIN: ${REACT_APP_FIREBASE_AUTH_DOMAIN}
REACT_APP_BUYER_BACKEND_URL: ${REACT_APP_BUYER_BACKEND_URL}
REACT_APP_SELLER_BACKEND_URL: ${REACT_APP_SELLER_BACKEND_URL}
depends_on:
- seller
- bpp-protocol-webserver
- seller-client
ports:
- "80:80"
- "443:443"
seller-app-igm:
build:
context: seller-app-igm
environment:
PROTOCOL_BASE_URL: ${PROTOCOL_BASE_URL}
DB_CONNECTION_STRING: ${DB_CONNECTION_STRING}
BUGZILLA_SERVICE_URI: ${BUGZILLA_SERVICE_URI}
DOMAIN: ${DOMAIN}
BUGZILLA_API_KEY: ${BUGZILLA_API_KEY}
PG_DATABASE: ${PG_DATABASE}
PG_USER: ${PG_USER}
PG_PASSWORD: ${PG_PASSWORD}
PG_HOST: ${PG_HOST}
BPP_ID: ${BPP_ID}
BPP_URI: ${BPP_URI}
SELLER_SERVER_URL: http://seller:3019
ports:
- "8000:8000"
restart: always
bugzilla-node-backend:
container_name: bugzilla-node-dev-seller
build:
context: seller-bugzilla-service
dockerfile: Dockerfile
environment:
ENV: prod
BUGZILLA_API_KEY: ${BUGZILLA_API_KEY}
BUGZILLA_BASE_URI: ${BUGZILLA_BASE_URI}
BUGZILLA_ADMIN_EMAIL: ${BUGZILLA_ADMIN_EMAIL}
ports:
- "8001:8001"
restart: always
bugzilla-dev-service:
build:
context: ./seller-bugzilla-service/bugzilla-main
dockerfile: Dockerfile
environment:
BUGZILLA_WWW: /var/www/html/bugzilla/
BUGZILLA_ADMIN_EMAIL: ${BUGZILLA_ADMIN_EMAIL}
container_name: bugzilla-dev-service-seller
image: shameerkc/bugzilla-dev-sqlite
ports:
- "90:80"
- "5989:5900"