代码拉取完成,页面将自动刷新
version: "3.8"
services:
php:
image: ${PHP_VERSION}
container_name: php
restart: always
ports:
- "9000:9000"
- "9501:9501"
- "9503:9503"
volumes:
- ${PHP_CONF_DIR}/php.ini:/usr/local/etc/php/php.ini:ro
- ${PHP_CONF_DIR}/php-fpm.conf:/usr/local/etc/php-fpm.d/www.conf:ro
- ${DATA_DIR}/composer:/tmp/composer
- ${LOG_DIR}/php:/var/log/php:rw
- ./www:/var/www/html:rw
environment:
TZ: "${TIMEZONE}"
tty: true
networks:
- elk
openresty:
image: ${OPENRESTY_VERSION}
container_name: openresty
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ${OPENRESTY_CONF_DIR}/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro
- ${OPENRESTY_CONF_DIR}/conf.d/:/etc/nginx/conf.d/:rw
- ${OPENRESTY_CONF_DIR}/cert:/etc/nginx/cert:ro
- ${LOG_DIR}/nginx:/var/log/nginx:rw
- ./www:/var/www/html:rw
environment:
TZ: "${TIMEZONE}"
networks:
- elk
mysql:
image: ${MYSQL_VERSION}
container_name: mysql
restart: always
ports:
- "3306:3306"
volumes:
- ${MYSQL_CONF_DIR}/mysql.cnf:/etc/mysql/conf.d/mysql.cnf:ro
- ${MYSQL_LIB_DIR}:/var/lib/mysql:rw
environment:
MYSQL_SQL_MODE: STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
TZ: "${TIMEZONE}"
networks:
- elk
redis:
image: ${REDIS_VERSION}
container_name: redis
restart: always
ports:
- "6379:6379"
volumes:
- ${DATA_DIR}/redis:/data:rw
- ${REDIS_CONF_DIR}/redis.conf:/etc/redis.conf:ro
environment:
TZ: "${TIMEZONE}"
networks:
- elk
nacos:
image: ${NACOS_VERSION}
container_name: nacos
restart: on-failure
ports:
- "8849:8849"
- "8848:8848"
volumes:
- ${LOG_DIR}/nacos/:/home/nacos/logs
- ${NACOS_CONF_DIR}/conf/application.properties:/home/nacos/conf/application.properties
depends_on:
- "mysql"
tty: true
networks:
- elk
# rabbitmq:
# image: xiaoshangmin/rabbitmq
# container_name: rabbitmq
# restart: always
# ports:
# - "5672:5672"
# - "15672:15672"
# volumes:
# - ./data/rabbitmq:/var/lib/rabbitmq/mnesia:rw
# - ./logs/rabbitmq:/var/log/rabbitmq:rw
# - ./rabbitmq/etc/:/etc/rabbitmq:rw
# environment:
# - RABBITMQ_DEFAULT_USER=admin
# - RABBITMQ_DEFAULT_PASS=admin
# networks:
# - "default"
# elasticsearch:
# image: elasticsearch:7.17.5
# container_name: elasticsearch
# hostname: elasticsearch
# restart: always
# volumes:
# #多个容器之间共享数据卷,须在顶级的 volumes 节点中定义这个数据卷elasticsearch
# - elasticsearch:/usr/share/elasticsearch/data:z
# - ./data/esdata:/usr/share/elasticsearch/data:z
# - ./elk/es/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro,z
# environment:
# discovery.type: single-node
# ES_JAVA_OPTS: -Xmx512m -Xms512m
# ports:
# - "9200:9200"
# - "9300:9300"
# networks:
# - elk
# filebeat:
# image: elastic/filebeat:7.17.5
# container_name: filebeat
# user: root
# volumes:
# - ./elk/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
# - /var/lib/docker/containers:/var/lib/docker/containers:ro
# networks:
# - "default"
# depends_on:
# - "logstash"
# logstash:
# image: logstash:7.17.5
# container_name: logstash
# hostname: logstash
# restart: always
# volumes:
# - ./elk/logstash/pipeline:/usr/share/logstash/pipeline:ro,Z
# - ./elk/logstash/logstash.yml:/usr/share/logstash/config/logstash.yml:ro,Z
# - ${LOG_DIR}/nginx:/var/log/nginx:rw
# environment:
# LS_JAVA_OPTS: -Xmx512m -Xms512m
# ports:
# - "5044:5044"
# - "5000:5000/tcp"
# - "5000:5000/udp"
# - "9600:9600"
# networks:
# - elk
# depends_on:
# - elasticsearch
# kibana:
# image: kibana:7.17.5
# container_name: kibana
# hostname: kibana
# restart: always
# volumes:
# - ./elk/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml:ro,Z
# ports:
# - "5601:5601"
# environment:
# I18N_LOCALE: "zh-CN"
# elasticsearch.hosts: http://elasticsearch:9200
# depends_on:
# - elasticsearch
# networks:
# - elk
# volumes:
# elasticsearch:
networks:
elk:
driver: bridge
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。