-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlocal-docker-compose.yml
123 lines (121 loc) · 3.8 KB
/
local-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
version: '3'
networks:
local_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.12.1.0/24
services:
mysql:
image: 'mysql:8.0.17'
environment:
MYSQL_ROOT_PASSWORD: mysql_password
ports:
- 3306:3306
volumes:
- ./mysql_init:/docker-entrypoint-initdb.d
networks:
local_net:
ipv4_address: 172.12.1.2
mongo:
image: 'mongo:4.2.0'
environment:
MONGO_INITDB_ROOT_USERNAME: mongo_user
MONGO_INITDB_ROOT_PASSWORD: mongo_password
ports:
- 27017:27017
networks:
local_net:
ipv4_address: 172.12.1.9
api-server:
build:
context: .
dockerfile: apiserver/Dockerfile
args:
- WORKER_COUNT=1
ports:
- 80:8080
environment:
ENV: dev
API_SERVER__MYSQL__HOST: 172.12.1.2
API_SERVER__MYSQL__USER: root
API_SERVER__MYSQL__PASSWORD: mysql_password
API_SERVER__MONGO__HOST: 172.12.1.9
API_SERVER__MONGO__USER: mongo_user
API_SERVER__MONGO__PASSWORD: mongo_password
API_SERVER__TASK_QUEUE__HOST: 172.12.1.2
API_SERVER__TASK_QUEUE__USER: root
API_SERVER__TASK_QUEUE__PASSWORD: mysql_password
API_SERVER__INTERNAL_API_KEYS: internal_key_1,internal_key_2
networks:
local_net:
ipv4_address: 172.12.1.4
restart: unless-stopped
depends_on:
- mysql
messaging-worker-apns:
build:
context: .
dockerfile: worker/messaging/apns/Dockerfile
volumes:
- ${PUSH_WORKER__APNS__PEM_CERT__FILE_NAME:-./messaging}:/apns.pem
- ${PUSH_WORKER__APNS__P8_CERT__FILE_NAME:-./messaging}:/apns.p8
environment:
ENV: dev
PUSH_WORKER__POOL_SIZE: 1
PUSH_WORKER__TASK_QUEUE__HOST: 172.12.1.2
PUSH_WORKER__TASK_QUEUE__USER: root
PUSH_WORKER__TASK_QUEUE__PASSWORD: mysql_password
PUSH_WORKER__APNS__PEM_CERT__FILE_NAME: /apns.pem
PUSH_WORKER__APNS__P8_CERT__FILE_NAME: /apns.p8
PUSH_WORKER__APNS__P8_CERT__KEY_ID: ${PUSH_WORKER__APNS__P8_CERT__KEY_ID:-empty}
PUSH_WORKER__APNS__P8_CERT__TEAM_ID: ${PUSH_WORKER__APNS__P8_CERT__TEAM_ID:-empty}
PUSH_WORKER__APNS__P8_CERT__TOPIC: ${PUSH_WORKER__APNS__P8_CERT__TOPIC:-empty}
PUSH_WORKER__APNS__CERT_TYPE: ${PUSH_WORKER__APNS__CERT_TYPE}
networks:
local_net:
ipv4_address: 172.12.1.5
restart: unless-stopped
depends_on:
- mysql
messaging-worker-fcm:
build:
context: .
dockerfile: worker/messaging/fcm/Dockerfile
volumes:
- ${PUSH_WORKER__FCM__V1__KEY_FILE_NAME:-./messaging}:/fcm_service_account.json
environment:
ENV: dev
PUSH_WORKER__POOL_SIZE: 1
PUSH_WORKER__TASK_QUEUE__HOST: 172.12.1.2
PUSH_WORKER__TASK_QUEUE__USER: root
PUSH_WORKER__TASK_QUEUE__PASSWORD: mysql_password
PUSH_WORKER__FCM__LEGACY__SERVER_KEY: ${PUSH_WORKER__FCM__LEGACY__SERVER_KEY:-empty}
PUSH_WORKER__FCM__V1__KEY_FILE_NAME: /fcm_service_account.json
PUSH_WORKER__FCM__V1__PROJECT_ID: ${PUSH_WORKER__FCM__V1__PROJECT_ID:-empty}
PUSH_WORKER__FCM__CLIENT: ${PUSH_WORKER__FCM__CLIENT}
networks:
local_net:
ipv4_address: 172.12.1.6
restart: unless-stopped
depends_on:
- mysql
notification-worker:
build:
context: .
dockerfile: worker/notification/Dockerfile
environment:
ENV: dev
NOTIFICATION_WORKER__POOL_SIZE: 1
NOTIFICATION_WORKER__TASK_QUEUE__HOST: 172.12.1.2
NOTIFICATION_WORKER__TASK_QUEUE__USER: root
NOTIFICATION_WORKER__TASK_QUEUE__PASSWORD: mysql_password
NOTIFICATION_WORKER__EXTERNAL__JRAZE__BASE_URL: http://172.12.1.4:8080/
NOTIFICATION_WORKER__EXTERNAL__JRAZE__X_SERVER_KEY: internal_key_1
networks:
local_net:
ipv4_address: 172.12.1.7
restart: unless-stopped
depends_on:
- mysql