forked from pythonstock/stock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (39 loc) · 1.08 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"
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
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
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_general_ci',
'--max_connections=3000'
]
restart: always