-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (78 loc) · 1.76 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
version: '3.0'
networks:
kms:
external: true
services:
access-rpc:
env_file:
- .env
deploy: # cpu和内存限制
resources:
limits:
cpus: '2'
memory: 4000M
image: ${HUB}access-rpc${TAG}
container_name: access-rpc
restart: always
command: ./access -f /app/etc/access${BRANCH_ENV}.yaml
privileged: true
volumes:
- ${KMS_PATH}/access/endpoint/rpc/etc:/app/etc
- ${LOG_PATH}/logs/access:/app/logs
ports:
- "3200:3200"
networks:
- kms
users-rpc:
env_file:
- .env
image: ${HUB}users-rpc${TAG}
container_name: users-rpc
restart: always
command: ./users -f /app/etc/users${BRANCH_ENV}.yaml
privileged: true
volumes:
- ${KMS_PATH}/users/endpoint/rpc/etc:/app/etc
- ${LOG_PATH}/logs/users-rpc:/app/logs
networks:
- kms
ports:
- "9001:9001"
depends_on:
- access-rpc
access-api:
env_file:
- .env
image: ${HUB}access-api${TAG}
container_name: access-api
restart: always
command: ./access -f /app/etc/access-api${BRANCH_ENV}.yaml
privileged: true
volumes:
- ${KMS_PATH}/access/endpoint/api/etc:/app/etc
- ${LOG_PATH}/logs/access-api:/app/logs
networks:
- kms
ports:
- "8009:8009"
depends_on:
- access-rpc
- users-rpc
users-api:
env_file:
- .env
image: ${HUB}users-api${TAG}
container_name: users-api
restart: always
command: ./users -f /app/etc/users-api${BRANCH_ENV}.yaml
privileged: true
volumes:
- ${KMS_PATH}/users/endpoint/api/etc:/app/etc
- ${LOG_PATH}/logs/users-api:/app/logs
networks:
- kms
ports:
- "8001:8001"
depends_on:
- access-rpc
- users-rpc