1 Star 0 Fork 4

Leesinyii/docker_PRE

forked from guoliang1994/docker_PRE 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 2.28 KB
一键复制 编辑 原始数据 按行查看 历史
guoliang1994 提交于 2020-11-14 12:37 . 增加laravel-echo-server
version: '3.5'
services:
nginx:
container_name: ${APP_NAME}_nginx
restart: always
privileged: true
working_dir: /www
build:
context: ./build/nginx
ports:
- "8001-8090:8001-8090"
volumes:
- ${PROJECT_DIR}:/www:rw
- ./nginx/config/nginx.conf:/usr/local/nginx/conf/nginx.conf:ro
- ./nginx/config/conf.d:/usr/local/nginx/conf/conf.d:rw
- ./nginx/log:/var/log/nginx:rw
command:
- sh
- -c
- |
exec nginx -g 'daemon off;'
php:
container_name: ${APP_NAME}_php
restart: always
privileged: true
working_dir: /www
links:
- mysql
build:
context: ./build/php
args:
PHP_VERSION: ${PHP_VERSION}
ports:
- "80:80"
- "443:443"
- "8888:8888"
- '9900-10000:9900-10000'
volumes:
- ${PROJECT_DIR}:/www:rw
- ./php/conf/php-fpm.conf:/usr/local/etc/php/php-fpm.conf
- ./php/conf/php.ini:/usr/local/etc/php/php.ini
- ./php/log:/var/log:rw
# command:
# - sh
# - -c
# - |
# set eux \
# && php-fpm -R
# && rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
# && cd /www/blog/laravel-bjyblog \
# && php artisan swoole:http start
mysql:
image: mysql:${MYSQL_VERSION}
container_name: ${APP_NAME}_mysql
restart: always
privileged: true
ports:
- "${MYSQL_PORT}:3306"
volumes:
- ${PROJECT_DIR}:/www:rw
- ./mysql/data:/var/lib/mysql:rw
- ./mysql/config/mysql.cnf:/etc/mysql/conf.d/mysql.cnf:ro
- ./mysql/log:/var/log/mysql:rw
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
redis:
image: redis:latest
container_name: ${APP_NAME}_redis
restart: always
privileged: true
ports:
- "${REDIS_PORT}:6379"
volumes:
- ./redis/config/redis.conf:/usr/local/etc/redis/redis.conf:ro
- ./redis/log/redis.log:/var/log/redis/redis.log:rw
solr:
image: solr
container_name: ${APP_NAME}_solr
restart: always
privileged: true
ports:
- ${SOLR_PORT}:8983
command:
- solr-precreate
- test
volumes:
- ./solr/data:/var/solr:rw
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/leesinyii/docker_PRE.git
git@gitee.com:leesinyii/docker_PRE.git
leesinyii
docker_PRE
docker_PRE
master

搜索帮助