forked from pythonstock/stock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
40 lines (39 loc) · 1.2 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
version: "3"
services:
stock:
image: pythonstock/pythonstock:latest
container_name: stock
ports:
- "8888:8888"
- "9999:9999"
volumes:
- "./data/notebooks:/data/notebooks"
- "./data/logs:/data/logs"
- "./jobs:/data/stock/jobs"
- "./libs:/data/stock/libs"
- "./web:/data/stock/web"
environment:
MYSQL_HOST: mysqldb
MYSQL_USER: root
MYSQL_PWD: mysqldb
MYSQL_DB: stock_data
LANG: zh_CN.UTF-8
LC_CTYPE: zh_CN.UTF-8
PYTHONIOENCODING: utf-8
# 测试使用,自己需注册,申请:https://tushare.pro/user/token
TUSHARE_TOKEN: 007b2f24bc3afb5ff5c604b0aee583956840210348169bc2436bddf9
links:
- mysqldb:mysqldb
restart: always
mysqldb:
image: mysql:5.7
container_name: mysqldb
ports:
- "3306:3306"
volumes:
- "./data/mysqldb/data:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: mysqldb
MYSQL_DATABASE: stock_data
TZ: Asia/Shanghai
restart: always