-
Notifications
You must be signed in to change notification settings - Fork 57
/
docker-compose.yml
112 lines (103 loc) · 1.93 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
version: "3.7"
services:
redis:
image: redis:alpine
environment:
- REDIS_HOST_PASSWORD
restart: always
ports:
- "6379:6379"
hostname: redis
command:
- /bin/sh
- -c
- redis-server --save 20 1 --appendonly no --maxmemory 16gb --maxmemory-policy allkeys-lru --loglevel warning --requirepass "$${REDIS_HOST_PASSWORD:?REDIS_HOST_PASSWORD variable is not set}"
volumes:
- redis:/data
networks:
- vision
vapi:
image: ecency/api:latest
environment:
- PRIVATE_API_ADDR
- PRIVATE_API_AUTH
- HIVESIGNER_CLIENT_SECRET
- SEARCH_API_ADDR
- SEARCH_API_SECRET
restart: always
ports:
- "4000:4000"
hostname: vapi
depends_on:
- redis
networks:
- vision
web1:
image: ecency/vision:development
environment:
- USE_PRIVATE
- REDIS_HOST_PASSWORD
restart: always
ports:
- "3001:3000"
hostname: web1
depends_on:
- redis
networks:
- vision
web2:
image: ecency/vision:development
environment:
- USE_PRIVATE
- REDIS_HOST_PASSWORD
restart: always
ports:
- "3002:3000"
hostname: web2
depends_on:
- redis
networks:
- vision
web3:
image: ecency/vision:development
environment:
- USE_PRIVATE
- REDIS_HOST_PASSWORD
restart: always
ports:
- "3003:3000"
hostname: web3
depends_on:
- redis
networks:
- vision
web4:
image: ecency/vision:development
environment:
- USE_PRIVATE
- REDIS_HOST_PASSWORD
restart: always
ports:
- "3004:3000"
hostname: web4
depends_on:
- redis
networks:
- vision
nginx:
build: ./nginx
ports:
- '3000:80'
depends_on:
- web1
- web2
- web3
- web4
networks:
- vision
volumes:
redis:
driver: local
networks:
vision:
external: true