-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (59 loc) · 1.04 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
version: '3'
services:
server1:
image: server1
build: ./server1
ports:
- 3009:3009
environment:
- PORT=3009
- REDIS_URL=redis://bun-redis:6379
volumes:
- ./app:/app
depends_on:
- bun-redis
server2:
image: server2
build: ./server2
ports:
- 3010:3010
environment:
- PORT=3010
- REDIS_URL=redis://bun-redis:6379
volumes:
- ./app:/app
depends_on:
- bun-redis
client1:
image: client1
build: ./client1
ports:
- 5173:5173
environment:
- PORT=5173
volumes:
- ./app:/app
depends_on:
- server2
client2:
image: client2
build: ./client2
ports:
- 5174:5174
environment:
- PORT=5174
volumes:
- ./app:/app
depends_on:
- server1
bun-redis:
container_name: bun-redis
image: redis
ports:
- "6378:6379"
volumes:
- "./data/redis:/data"
environment:
- REDIS_PASSWORD=my-password
- REDIS_PORT=6379
- REDIS_DATABASES=16