3 Star 22 Fork 9

hsj/Hrun

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
hsj 提交于 2024-05-28 16:52 . gitignore
# 指定版本号
"version": "3"
# 服务,表示要启动的容器服务
"services":
# 每个服务的名字就是容器的名字
redis:
image: redis:alpine
restart: always
volumes:
- /mydata/redis/data:/data
- /mydata/redis/conf/redis.conf:/etc/redis/redis.conf
command: redis-server /etc/redis/redis.conf
mariadb:
image: mariadb:latest
restart: always
environment:
MARIADB_ROOT_PASSWORD: pythonvip
MARIADB_DATABASE: HRUN
volumes:
- mariadb:/var/lib/mysql
ports:
- "8000:3306"
backend:
depends_on:
- redis
- mariadb
build: ./backend
image: backend_django_image
environment:
ENV: production
restart: always
volumes:
- app_logs:/app/logs
ports:
- "3306:3306"
nginx:
depends_on:
- backend
build: ./nginx
image: backend_nginx_image
ports:
- "5001:80"
- "5002:81"
volumes:
- nginx_logs:/var/log
volumes:
mariadb:
app_logs:
nginx_logs:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/hsjtest/hrun.git
git@gitee.com:hsjtest/hrun.git
hsjtest
hrun
Hrun
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385