1 Star 0 Fork 7

cat/eduxplus

forked from huagelong/eduxplus 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 2.21 KB
一键复制 编辑 原始数据 按行查看 历史
huagelong 提交于 2022-04-21 13:54 . docker-compose优化
version: '3.7'
services:
db:
container_name: db
image: mysql
command: ["--default-authentication-plugin=mysql_native_password"]
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: eduxplus
MYSQL_USER: eduxplus
MYSQL_PASSWORD: eduxplus
networks:
- db
redis:
container_name: redis
image: redis
ports:
- "6378:6379"
networks:
- redis
php:
container_name: php-fpm
build: ./docs/docker/php-fpm
ports:
- "9001:9001"
volumes:
- ./:/var/www/symfony
depends_on:
- db
- redis
networks:
- redis
- db
- php
nginx:
container_name: nginx
build: ./docs/docker/nginx
ports:
- "81:80"
depends_on:
- php
networks:
- php
volumes:
- ./logs/nginx:/var/log/nginx
- ./:/var/www/symfony
elasticsearch:
container_name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.4.2
environment:
discovery.type: "single-node"
ports:
- "9200:9200"
networks:
elk_stack:
aliases:
- "elasticsearch"
logstash:
container_name: logstash
image: docker.elastic.co/logstash/logstash:7.4.2
depends_on:
- elasticsearch
volumes:
- ./docs/docker/elk/logstash/pipelines.yml:/usr/share/logstash/config/pipelines.yml
- ./docs/docker/elk/logstash/conf.d:/etc/logstash/conf.d
- ./logs/nginx:/var/log/nginx
networks:
- elk_stack
kibana:
container_name: kibana
depends_on:
- elasticsearch
image: docker.elastic.co/kibana/kibana:7.4.2
environment:
SERVER_NAME: localhost
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
networks:
- elk_stack
ports:
- "82:5601"
networks:
db:
redis:
php:
elk_stack:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/whatever66648/eduxplus.git
git@gitee.com:whatever66648/eduxplus.git
whatever66648
eduxplus
eduxplus
master

搜索帮助