-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
121 lines (112 loc) · 2.08 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
version: "3"
services:
# Redis
redis:
build: docker/redis
volumes:
- ./docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
expose:
- 6379
ports:
- 6379:6379
# Redis-LRU
redis-lru:
build: docker/redis
volumes:
- ./docker/redis/redis-lru.conf:/usr/local/etc/redis/redis.conf
expose:
- 6379
ports:
- 6380:6379
# API
api:
build:
context: .
dockerfile: docker/api/Dockerfile
volumes:
- ./config/api.json:/app/api.json
expose:
- 3400
ports:
- 3400:3400
links:
- redis
- redis-lru
# Auth
auth:
build:
context: .
dockerfile: docker/auth/Dockerfile
volumes:
- ./config/auth.json:/app/auth.json
- ./config/server.crt:/app/server.crt
- ./config/server.key:/app/server.key
expose:
- 8080
ports:
- 8080:8080
links:
- redis
- redis-lru
# Client
client:
build:
context: .
dockerfile: docker/client/Dockerfile
volumes:
- ./config/client.json:/app/client.json
expose:
- 42000
- 42001
ports:
- 42000:42000
- 42001:42001
links:
- api
- sync
# Core
core:
build:
context: .
dockerfile: docker/core/Dockerfile
volumes:
- ./config/core.json:/app/core.json
links:
- redis
- redis-lru
# Revoker
revoker:
build:
context: .
dockerfile: docker/revoker/Dockerfile
volumes:
- ./config/revoker.json:/app/revoker.json
links:
- redis
- redis-lru
# Sync
sync:
build:
context: .
dockerfile: docker/sync/Dockerfile
volumes:
- ./config/sync.json:/app/sync.json
links:
- redis
- redis-lru
# Tool
tool:
build:
context: .
dockerfile: docker/tool/Dockerfile
volumes:
- ./config/tool.json:/app/tool.json
- ./config/server.crt:/app/server.crt
- ./config/server.key:/app/server.key
expose:
- 8081
ports:
- 8081:8081
links:
- redis
- redis-lru