1 Star 0 Fork 3

上善若水/TestPlatformByYangLiang

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
yangliang 提交于 2022-10-13 10:21 . 增加 docker-compose
version : '3.9'
services:
web:
container_name: tpbylsrv
image: tpbylsrv
build:
context: ./
dockerfile: Dockerfile
ports:
- "1651:1650"
volumes:
- /root/python3_item/logs/:/dlog
networks:
- tpbylnw
depends_on:
- mysql
- redis
mysql:
container_name: mysql
image: mysql:8.0.25
environment:
MYSQL_ROOT_PASSWORD: 'new_password'
MYSQL_ALLOW_EMPTY_PASSWORD: 'no'
MYSQL_DATABASE: 'slag_test_platform'
MYSQL_USER: 'remote'
MYSQL_PASSWORD: 'new_password'
ports:
- "3306:3306"
volumes:
- /root/mysql/db:/var/lib/mysql
- /root/mysql/my.cnf:/etc/my.cnf
- /root/mysql/init:/docker-entrypoint-initdb.d
networks:
- tpbylnw
command: [
'--default-authentication-plugin=mysql_native_password',
]
redis:
container_name: redis
image: redis
ports:
- "6379:6379"
volumes:
- /root/redis/redis.conf:/etc/redis/redis.conf
- /root/redis/data:/data
networks:
- tpbylnw
command: redis-server /etc/redis/redis.conf
networks:
tpbylnw:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/civins/TestPlatformByYangLiang.git
git@gitee.com:civins/TestPlatformByYangLiang.git
civins
TestPlatformByYangLiang
TestPlatformByYangLiang
master

搜索帮助