compose
This commit is contained in:
parent
21d10e8cf4
commit
82831d278f
31
compose.yml
31
compose.yml
|
@ -103,37 +103,6 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- d:/docker-data/kafka:/bitnami/kafka
|
- d:/docker-data/kafka:/bitnami/kafka
|
||||||
|
|
||||||
nacos:
|
|
||||||
image: nacos/nacos-server:v2.2.3
|
|
||||||
container_name: nacos01
|
|
||||||
restart: always
|
|
||||||
extra_hosts:
|
|
||||||
- "host.docker.internal:host-gateway"
|
|
||||||
networks:
|
|
||||||
- y9-share-net
|
|
||||||
ports:
|
|
||||||
- "8848:8848"
|
|
||||||
- "9848:9848"
|
|
||||||
depends_on:
|
|
||||||
db:
|
|
||||||
condition: service_healthy
|
|
||||||
environment:
|
|
||||||
- PREFER_HOST_MODE=hostname
|
|
||||||
- MODE=standalone
|
|
||||||
- SPRING_DATASOURCE_PLATFORM=mysql
|
|
||||||
- MYSQL_SERVICE_HOST=db
|
|
||||||
- MYSQL_SERVICE_DB_NAME=nacos
|
|
||||||
- MYSQL_SERVICE_PORT=3306
|
|
||||||
- MYSQL_SERVICE_USER=root
|
|
||||||
- MYSQL_SERVICE_PASSWORD=12345678
|
|
||||||
- MYSQL_SERVICE_DB_PARAM=characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
|
|
||||||
- NACOS_AUTH_ENABLE=true
|
|
||||||
- NACOS_AUTH_IDENTITY_KEY=nacos
|
|
||||||
- NACOS_AUTH_IDENTITY_VALUE=nacos
|
|
||||||
- NACOS_AUTH_TOKEN=VGhpc0lzTXlDdXN0b21TZWNyZXRLZXkwMTIzNDU2Nzg=
|
|
||||||
volumes:
|
|
||||||
- d:/docker-data/nacos-logs:/home/nacos/logs
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
y9-share-net:
|
y9-share-net:
|
||||||
external: true
|
external: true
|
Loading…
Reference in New Issue