-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
53 lines (50 loc) · 1.06 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
version: "3"
services:
nginx-gateway:
image: nginx:1.21.5
container_name: nginx_gateway
restart: always
privileged: true
environment:
- TZ=Asia/Shanghai
ports:
- 8888:8081
volumes:
- ./deploy/nginx/conf.d:/etc/nginx/conf.d
- ./data/nginx/log:/var/log/nginx
networks:
- cloudStorageSystem
depends_on:
- fileserverapi
fileserverrpc:
image: jiangxiyang/fileserverrpc:1.0
container_name: fileserverrpc
restart: always
hostname: fileserverrpc
ports:
- "8001:8001"
networks:
- cloudStorageSystem
deploy:
mode: replicated
replicas: 3
fileserverapi:
image: jiangxiyang/fileserverapi:1.0
container_name: fileserverapi
restart: always
hostname: fileserverapi
ports:
- "8889:8889"
depends_on:
- fileserverrpc
networks:
- cloudStorageSystem
deploy:
mode: replicated
replicas: 3
networks:
cloudStorageSystem:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16