Add startup environment variable

This commit is contained in:
jinxin wang 2023-05-31 13:50:15 +08:00
parent d15408685d
commit ad67009dbf
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,6 @@
PREFER_HOST_MODE=hostname PREFER_HOST_MODE=hostname
MODE=standalone MODE=standalone
SPRING_DATASOURCE_PLATFORM=mysql SPRING_DATASOURCE_PLATFORM=mysql
NACOS_AUTH_IDENTITY_KEY=2222
NACOS_AUTH_IDENTITY_VALUE=2xxx
NACOS_AUTH_TOKEN=SecretKey012345678901234567890123456789012345678901234567890123456789

View File

@ -6,6 +6,9 @@ services:
environment: environment:
- PREFER_HOST_MODE=hostname - PREFER_HOST_MODE=hostname
- MODE=standalone - MODE=standalone
- NACOS_AUTH_IDENTITY_KEY=serverIdentity
- NACOS_AUTH_IDENTITY_VALUE=security
- NACOS_AUTH_TOKEN=SecretKey012345678901234567890123456789012345678901234567890123456789
volumes: volumes:
- ./standalone-logs/:/home/nacos/logs - ./standalone-logs/:/home/nacos/logs
ports: ports: