-
Notifications
You must be signed in to change notification settings - Fork 0
/
redis-outside.docker-compose.yml
80 lines (74 loc) · 1.91 KB
/
redis-outside.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
version: '3'
services:
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
volumes:
- ./config/redis.conf:/redis.conf
command: [ "redis-server", "/redis.conf", "--port", "6379" ]
gmm_server:
image: gmmindexererlang:latest
container_name: gmm_server
stdin_open: true
environment:
- REDIS=false
- ZONE_ID=zone0
- GMM_REDIS_HOST=redis
- GMM_REDIS_PORT=6379
- PORT=8080
expose:
- "8080"
ports:
- 8080:8080
depends_on:
- redis
redis2:
image: redis:latest
container_name: redis2
ports:
- 6380:6380
volumes:
- ./config/redis.conf:/redis.conf
command: [ "redis-server", "/redis.conf", "--port", "6380" ]
gmm_server2:
image: gmmindexererlang:latest
container_name: gmm_server2
stdin_open: true
environment:
- REDIS=false
- ZONE_ID=zone1
- GMM_REDIS_HOST=redis2
- GMM_REDIS_PORT=6380
- PORT=8081
expose:
- "8081"
ports:
- 8081:8081
depends_on:
- redis2
redis3:
image: redis:latest
container_name: redis3
ports:
- 6381:6381
volumes:
- ./config/redis.conf:/redis.conf
command: [ "redis-server", "/redis.conf", "--port", "6381" ]
gmm_server3:
image: gmmindexererlang:latest
container_name: gmm_server3
stdin_open: true
environment:
- REDIS=false
- ZONE_ID=zone2
- GMM_REDIS_HOST=redis3
- GMM_REDIS_PORT=6381
- PORT=8082
expose:
- "8082"
ports:
- 8082:8082
depends_on:
- redis3