1 Star 0 Fork 118

LemonTree/course-tencent-cloud-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
koogua 提交于 2021-06-22 18:54 . 去除ro限制
version: '3'
services:
nginx:
build: ./nginx
image: ctc/nginx:latest
container_name: ctc-nginx
ports:
- 80:80
- 443:443
volumes:
- ./html:/var/www/html
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/ssl:/etc/nginx/ssl
- ./nginx/log:/var/log/nginx
networks:
- koogua
restart: always
php:
build: ./php
image: ctc/php:latest
container_name: ctc-php
ports:
- 8282:8282
expose:
- 9000
volumes:
- ./html:/var/www/html
- ./php/log:/var/log/php-fpm
- ./php/conf.d/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./php/supervisor/conf.d:/etc/supervisor/conf.d
command: ["supervisord", "-n"]
networks:
- koogua
restart: always
mysql:
build: ./mysql
image: ctc/mysql:latest
container_name: ctc-mysql
expose:
- 3306
volumes:
- ./mysql/conf.d/my.cnf:/etc/mysql/conf.d/my.cnf
- ./mysql/data:/var/lib/mysql
- ./mysql/log:/var/log/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
networks:
- koogua
restart: always
redis:
build: ./redis
image: ctc/redis:latest
container_name: ctc-redis
expose:
- 6379
volumes:
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
- ./redis/data:/data
command: ["redis-server", "--requirepass", "${REDIS_PASSWORD}"]
networks:
- koogua
restart: always
xunsearch:
build: ./xunsearch
image: ctc/xunsearch:latest
container_name: ctc-xunsearch
expose:
- 8383
- 8384
volumes:
- ./xunsearch/data:/usr/local/xunsearch/data
networks:
- koogua
restart: always
networks:
koogua:
driver: bridge
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/fishhunterplus/course-tencent-cloud-docker.git
git@gitee.com:fishhunterplus/course-tencent-cloud-docker.git
fishhunterplus
course-tencent-cloud-docker
course-tencent-cloud-docker
master

搜索帮助