1 Star 0 Fork 31

johnxu88/docker-compose

forked from pythonstock/docker-compose 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dev-docker-compose.yml 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
freegolang 提交于 2023-06-11 22:53 . 增加端口。
networks:
stock-dev-network:
driver: bridge
version: "3"
services:
stock:
image: pythonstock/pythonstock:latest
container_name: stock
ports:
- "8888:8888"
- "9999:9999"
volumes:
- "../stock:/data/stock"
- "./data/notebooks:/data/notebooks"
- "./data/logs:/data/logs"
environment:
MYSQL_HOST: mysqlstock
MYSQL_USER: root
MYSQL_PWD: mysqlstock
MYSQL_DB: stock_data
MYSQL_PORT: 3306
LANG: zh_CN.UTF-8
LC_CTYPE: zh_CN.UTF-8
PYTHONIOENCODING: utf-8
links:
- mysqlstock:mysqlstock
restart: always
mysqlstock:
image: mysql:5.7
container_name: mysqlstock
ports:
- "3306:3306"
volumes:
- "./data/mysqlstock/data:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: mysqlstock
MYSQL_DATABASE: stock_data
TZ: Asia/Shanghai
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_general_ci',
'--max_connections=3000'
]
restart: always
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/johnxu88/docker-compose.git
git@gitee.com:johnxu88/docker-compose.git
johnxu88
docker-compose
docker-compose
master

搜索帮助