1 Star 0 Fork 21

birds/cabloy

forked from zhennann/cabloy 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
zhennann 提交于 2021-11-19 16:17 . chore: docker-compose
version: '3.7'
services:
app:
depends_on:
- mysql
- redis
build:
context: .
dockerfile: docker-compose-dockerfile-app
restart: always
ports:
- '7202:7102'
volumes:
- ./docker-compose/output/app/dist:/root/output/app/dist
- ./docker-compose/output/app/cabloy:/root/cabloy
- ./docker-compose/logs/app:/root/logs
command: ['./scripts/wait-for-it.sh', 'mysql:3306', 'redis:6379', '-s', '--', './scripts/app-init.sh']
nginx:
image: nginx:latest
depends_on:
- app
restart: always
ports:
- '80:80'
volumes:
- ./docker-compose/output/app/dist:/usr/share/nginx/app/dist
- ./docker-compose/output/app/cabloy:/usr/share/nginx/app/cabloy
- ./docker-compose/logs/nginx:/var/log/nginx
- ./docker-compose/config/nginx/conf.d:/etc/nginx/conf.d
mysql:
image: mysql:latest
command:
- --default-authentication-plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_general_ci
- --character-set-client-handshake=FALSE
- --skip-host-cache
- --skip-name-resolve
- --slow_query_log=1
- --long_query_time=0.5
- --log-queries-not-using-indexes=1
restart: always
ports:
- '33306:3306'
volumes:
- ./docker-compose/data/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 'CDf#lV+q5I1RB2KR'
MYSQL_DATABASE: 'cabloy'
MYSQL_USER: 'web_user'
MYSQL_PASSWORD: '!%{9mov.Tw3LmcYP'
security_opt:
- seccomp:unconfined
redis:
image: redis:latest
command: ['redis-server', '--appendonly', 'yes']
restart: always
ports:
- '36379:6379'
volumes:
- ./docker-compose/data/redis:/data
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/birds/cabloy.git
git@gitee.com:birds/cabloy.git
birds
cabloy
cabloy
master

搜索帮助