-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.stage.yml
113 lines (105 loc) · 2.75 KB
/
docker-compose.stage.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
version: '3.9'
x-shared_environment: &shared_environment
LOG_LEVEL: ${LOG_LEVEL:-debug}
JWKS: "${JWKS_STAGE}"
MONGO_DB_STAGE: "${MONGO_DB_STAGE}"
EVENTS_URL: "${EVENTS_URL_STAGE}"
CHATS_URL: "${CHATS_URL_STAGE}"
AUTH_URL: "${AUTH_URL_STAGE}"
# Common
TWILIO_ACCOUNT_ID: "${TWILIO_ACCOUNT_ID}"
TWILIO_ACCOUNT_SECRET: "${TWILIO_ACCOUNT_SECRET}"
SENDER_NUMBER: "${SENDER_NUMBER}"
APNS_KEY_ID: "${APNS_KEY_ID}"
APNS_PRIVATE_KEY: "${APNS_PRIVATE_KEY}"
APNS_TEAM_ID: "${APNS_TEAM_ID}"
APNS_TOPIC: "${APNS_TOPIC}"
services:
mongo:
image: mongo:5.0.3
container_name: addame_mongodb
volumes:
#- ./mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ./docker-entrypoint-initdb.d/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
- ./mongodb/data_stage:/data/db_stage
environment:
MONGO_INITDB_DATABASE: addame_api_stage
networks:
- stage_gateway
restart: unless-stopped
chat:
image: addamespb/chat_engine:latest
container_name: achat
build:
context: chatEngine
environment:
<<: *shared_environment
ports:
- 6061:6060
command: ["serve", "--env", "staging", "--hostname", "0.0.0.0", "--port", "6061"]
volumes:
- ~/addame/chatEngine_data_stage:/chat_data_stage
depends_on:
- mongo
links:
- mongo
networks:
- stage_gateway
restart: always
event:
image: addamespb/event_engine:latest
container_name: aevent
build:
context: eventEngine
environment:
<<: *shared_environment
ports:
- '9091:9090'
command: ["serve", "--env", "staging", "--hostname", "0.0.0.0", "--port", "9091"]
volumes:
- ~/addame/eventEngine_data_stage:/event_data_stage
depends_on:
- mongo
networks:
- stage_gateway
links:
- mongo
restart: always
auth:
image: addamespb/addame_auth:latest
container_name: aauth
build:
context: addameAuth
environment:
<<: *shared_environment
ports:
- '3031:3030'
command: ["serve", "--env", "staging", "--hostname", "0.0.0.0", "--port", "3031"]
volumes:
- ~/addame/authEngine_data_stage:/auth_data_stage
depends_on:
- mongo
networks:
- stage_gateway
links:
- mongo
restart: always
api_gateway:
image: addamespb/addaapi_gateway:latest
container_name: agateway
build:
context: addameapiGateway
environment:
<<: *shared_environment
ports:
- '80:8081'
- '443:8081'
command: ["serve", "--env", "staging", "--hostname", "0.0.0.0", "--port", "8081"]
volumes:
- ~/addame/gateway_data_stage:/gateway_data_stage
networks:
- stage_gateway
restart: always
networks:
stage_gateway:
name: Default