4 Star 16 Fork 16

thinkcmf/ThinkCMF Docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
五五 提交于 2023-10-05 15:25 . php 8.2
version: "3"
services:
nginx:
image: nginx:alpine
restart: always
container_name: thinkcmf-nginx
ports:
- "80:80"
volumes:
- ./www/thinkcmf/:/var/www/html/:rw
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
networks:
- web
php-fpm:
image: thinkcmfpro/thinkcmf:latest
restart: always
container_name: thinkcmf-php-fpm
volumes:
- ./www/thinkcmf/:/var/www/html/:rw
- ./php/php.ini:/usr/local/etc/php/conf.d/php.ini
environment:
- DATABASE_HOSTNAME=mysql
- DATABASE_USERNAME=root
- DATABASE_PASSWORD=thinkcmf
- DATABASE_DATABASE=thinkcmf
networks:
- web
mysql:
image: mysql:latest
restart: always
container_name: thinkcmf-mysql
volumes:
- ./mysql/data/:/var/lib/mysql/
environment:
- MYSQL_ROOT_PASSWORD=thinkcmf
networks:
- web
redis:
image: redis:alpine
restart: always
container_name: thinkcmf-redis
volumes:
- ./redis/data:/data
networks:
- web
adminer:
image: adminer
container_name: thinkcmf-mysql-manage
environment:
- ADMINER_DEFAULT_SERVER=mysql
- ADMINER_DEFAULT_USER=root
ports:
- "1000:8080"
depends_on:
- mysql
networks:
- web
restart: always
phpredisadmin:
image: erikdubbelboer/phpredisadmin
container_name: thinkcmf-redis-manage
environment:
- TZ=Asia/Shanghai
- REDIS_1_HOST=redis
- REDIS_1_PORT=6379
- ADMIN_USER=thinkcmf
- ADMIN_PASS=thinkcmf
ports:
- "2000:80"
depends_on:
- redis
networks:
- web
restart: always
networks:
web:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/thinkcmf/docker.git
git@gitee.com:thinkcmf/docker.git
thinkcmf
docker
ThinkCMF Docker
master

搜索帮助