代码拉取完成,页面将自动刷新
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:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。