代码拉取完成,页面将自动刷新
同步操作将从 koogua/course-tencent-cloud-docker 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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/my.ini:/usr/local/etc/php/conf.d/my.ini
- ./php/supervisor/conf.d:/etc/supervisor/conf.d
- ./php/supervisor/log:/var/log/supervisor
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。