forked from lan-tianxiang/jd_shell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·53 lines (51 loc) · 1.76 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
version: "3.0"
services:
# 第1个容器
jd1:
image: lan-tianxiang/jd_shell:gitee # 如果要从gitee更新脚本,则为:lan-tianxiang/jd_shell:gitee
container_name: jd1
restart: always
tty: true
network_mode: "bridge"
hostname: jd1
volumes:
- ./jd1/config:/jd/config
- ./jd1/log:/jd/log
- ./jd1/scripts:/jd/scripts # 如果想要看到lxk0301大佬的js脚本,以方便的添加额外脚本,可以解除本行注释,下同
ports:
- 5678:5678
environment:
- ENABLE_HANGUP=true # 是否在启动容器时自动启动挂机程序
- ENABLE_WEB_PANEL=true # 是否在启动容器时自动启动控制面板
# 第2个容器
jd2:
image: lan-tianxiang/jd_shell:gitee # 如果要从gitee更新脚本,则为:lan-tianxiang/jd_shell:gitee
container_name: jd2
restart: always
tty: true
network_mode: "bridge"
hostname: jd2
volumes:
- ./jd2/config:/jd/config
- ./jd2/log:/jd/log
ports:
- 5679:5678
environment:
- ENABLE_HANGUP=true # 是否在启动容器时自动启动挂机程序
- ENABLE_WEB_PANEL=true # 是否在启动容器时自动启动控制面板
# 第3个容器,以此类推
jd3:
image: lan-tianxiang/jd_shell:gitee # 如果要从gitee更新脚本,则为:lan-tianxiang/jd_shell:gitee
container_name: jd3
restart: always
tty: true
network_mode: "bridge"
hostname: jd3
volumes:
- ./jd3/config:/jd/config
- ./jd3/log:/jd/log
ports:
- 5680:5678
environment:
- ENABLE_HANGUP=true # 是否在启动容器时自动启动挂机程序
- ENABLE_WEB_PANEL=true # 是否在启动容器时自动启动控制面板