-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
78 lines (77 loc) · 1.31 KB
/
docker-compose.yaml
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
version: "3.6"
services:
cassandra:
container_name: testcass
image: cassandra:4.0
ports:
- 9042:9042
networks:
- go_net
volumes:
- ~/apps/cassandra:/var/lib/cassandra
environment:
- CASSANDRA_CLUSTER_NAME=mycluster
redis:
container_name: redis_chat
image: "redis:7.0.2"
ports:
- "6379:6379"
networks:
- go_net
api1:
container_name: go_chat1
build: .
ports:
- "6300:6300"
restart: always
environment:
SERVERID: "SERVER1"
PORT: "6300"
depends_on:
- redis
- cassandra
networks:
- go_net
api2:
container_name: go_chat2
build: .
ports:
- "6400:6400"
restart: always
environment:
SERVERID: "SERVER2"
PORT: "6400"
depends_on:
- redis
- cassandra
networks:
- go_net
api3:
container_name: go_chat3
build: .
ports:
- "6500:6500"
restart: always
environment:
SERVERID: "SERVER3"
PORT: "6500"
depends_on:
- redis
- cassandra
networks:
- go_net
nginx:
container_name: nginxproxy
restart: always
build:
context: ./nginx
ports:
- 80:80
depends_on:
- api1
- api2
- api3
networks:
- go_net
networks:
go_net: