-
Notifications
You must be signed in to change notification settings - Fork 58
/
docker-compose.yaml
67 lines (62 loc) · 1.9 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
## 定义 docker-compose 版本号[根据docker版本选择]
version: '3.6'
## 定义一组服务(或容器)
services:
## 定义服务名称[注意:这里不是容器名]
lumenim_http:
## 定义镜像名称
image: gzydong/lumenim:latest
## 定义创建后的容器名称
container_name: lumenim-http
## 定义容器端口映射[宿主机端口:容器端口]
ports:
- '9503:9501'
## 定义容器退出后的重启策略为始终重启
restart: always
## 定义数据卷映射
volumes:
- ./config.yaml:/work/config.yaml
- ./uploads/:/work/uploads/:rw
- ./runtime:/work/runtime
command: http --config=/work/config.yaml
lumenim_comet:
## 定义镜像名称
image: gzydong/lumenim:latest
## 定义创建后的容器名称
container_name: lumenim-comet
## 定义容器端口映射[宿主机端口:容器端口]
ports:
- '9504:9502'
## 定义容器退出后的重启策略为始终重启
restart: always
## 定义数据卷映射
volumes:
- ./config.yaml:/work/config.yaml
- ./runtime:/work/runtime
command: comet
lumenim_queue:
## 定义镜像名称
image: gzydong/lumenim:latest
## 定义创建后的容器名称
container_name: lumenim-queue
## 定义容器退出后的重启策略为始终重启
restart: always
## 定义数据卷映射
volumes:
- ./config.yaml:/work/config.yaml
- ./uploads/:/work/uploads/:rw
- ./runtime:/work/runtime
command: queue
lumenim_cron:
## 定义镜像名称
image: gzydong/lumenim:latest
## 定义创建后的容器名称
container_name: lumenim-cron
## 定义容器退出后的重启策略为始终重启
restart: always
## 定义数据卷映射
volumes:
- ./config.yaml:/work/config.yaml
- ./uploads/:/work/uploads/:rw
- ./runtime:/work/runtime
command: crontab