version : '3'
services :
#nacos
ds-nacos :
image : nacos/nacos-server:v2.2.3
container_name : ds-nacos
ports :
- 8848 : 8848
- 9848 : 9848
networks :
- ds-network
environment :
- MODE=standalone
- MYSQL_SERVICE_HOST=172.19.0.3
- MYSQL_SERVICE_PORT=3306
- MYSQL_SERVICE_DB_NAME=nacos
- MYSQL_SERVICE_USER=nacos
- MYSQL_SERVICE_PASSWORD=ds4810
- NACOS_AUTH_ENABLE=true
- NACOS_AUTH_TOKEN=SecretKey012345678901234567890123456789012345678901234567890987654321
- NACOS_AUTH_IDENTITY_KEY=dashan
- NACOS_AUTH_IDENTITY_VALUE=dashan
- JVM_XMS=256m
- JVM_XMX=256m
- JVM_XMN=128m
- JVM_MS=64m
- JVM_MMS=128m
restart : on -failure
ds-xxl-job :
image : xuxueli/xxl-job-admin:2.4.0
container_name : ds-xxl-job
ports :
- "9201:9201"
networks :
- ds-network
volumes :
- ./logs/xxl-job:/data/applogs
- ./data/xxl-job/:/xxl-job
environment :
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/xxl_job?serverTimezone=UTC&characterEncoding=utf8&autoReconnect=true&serverTimezone=Asia/Shanghai
- SPRING_DATASOURCE_USERNAME=xxl_job
- SPRING_DATASOURCE_PASSWORD=ds4810
- SERVER_PORT=9201
- JVM_XMS=256m
- JVM_XMX=256m
- JVM_XMN=128m
- JVM_MS=64m
- JVM_MMS=128m
restart : on -failure
#elasticsearch
ds-elasticsearch :
image : elasticsearch:8.8.1
container_name : ds-elasticsearch
ports :
- "9200:9200"
- "9300:9300"
networks :
- ds-network
environment :
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms128m -Xmx256m
- http.host=0.0.0.0
privileged : true
volumes :
- ./data/elasticsearch:/usr/share/elasticsearch/data
- ./config/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- es-plugins:/usr/share/elasticsearch/plugins
#restart: on-failure:3
#kibana
ds-kibana :
image : kibana:8.8.1
container_name : ds-kibana
ports :
- "5601:5601"
networks :
- ds-network
environment :
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms128m -Xmx256m
- http.host=0.0.0.0
privileged : true
volumes :
- ./config/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
depends_on :
- ds-elasticsearch
#restart: on-failure:3
ds-gateway :
container_name : ds-gateway
build :
context : ./ds/gateway
dockerfile : Dockerfile
ports :
- "8080:8080"
depends_on :
- ds-nacos
networks :
- ds-network
ds-miniapps :
container_name : ds-miniapps
build :
context : ./ds/modules/miniapps
dockerfile : Dockerfile
ports :
- "15101:15101"
depends_on :
- ds-nacos
networks :
- ds-network
networks :
ds-network :
external : true
volumes :
#解决ERROR: Named volume "es-plugins:/usr/share/elasticsearch/plugins:rw" is used in service "lottery-elasticsearch" but no declaration was found in the volumes section.
es-plugins :