-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
32 lines (32 loc) · 1.34 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
version: "3" # docker-compose版本
services:
server: # docker-compose编排名称,一般同微服务名称,注意不要与其>他服务重名
image: "ezdata123/ezdata:1.0.2" # docker镜像名及版本
container_name: ezdata # 服务容器
volumes: # 挂载目录
- /opt/ezdata:/opt/ezdata
environment: # 配置环境变量
- TZ=Asia/Shanghai # 设置时区
- read_env=1 # 是否读取配置文件
- ENV=dev.env # 配置文件
- run_upgrade=1 # 是否启动时升级依赖库
- upgrade_packages=akshare,ccxt # 启动时升级依赖库列表
- run_web=1 # 是否运行web api
- web_worker=4 # web api 并发数
- run_scheduler=1 # 是否运行scheduler api
- run_flower=1 # 是否运行celery flower监控
- run_worker=1 # 是否运行celery worker
- worker_concurrency=4 # celery worker 并发数
- worker_queue=default # celery worker 订阅队列
- worker_process=prefork # celery worker 运行模式
working_dir: /opt/ezdata
ports:
- 8001:8001 # web服务端口
- 8002:8002 # 任务调度端口
- 5555:5555 # flower监控端口,不开启可注释掉
- 9001:9001 # 守护进程web端口,不开启可注释掉
command: /bin/bash -c "bash init.sh"
privileged: true
restart: always
stdin_open: true
tty: true