加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
Joker 提交于 2023-02-22 15:46 . feat: add docker-compose.yml
version: '3'
services:
php:
container_name: catchadmin
image: jaguarjack/php82
ports:
- "8001:8001"
- "9000:9000"
volumes:
- .:/data
working_dir: /data
restart: always
networks:
- test
environment:
- APP_URL=127.0.0.1:8001
- DB_HOST=mysql
- DB_PORT=3306
- DB_DATABASE=catchadmin
- DB_USERNAME=root
- DB_PASSWORD=root
command: cp .env.example .env && php artisan catch:install && php artisan serve --port=8001
mysql:
container_name: mysql
image: mysql:5.7
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
restart: always
networks:
- test
node:
container_name: dashboard
image: node:latest
ports:
- "8000:8000"
volumes:
- .:/data
working_dir: /data
restart: always
networks:
- test
command: yarn install && yarn dev
networks:
test:
external: true
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化