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
+3
View File
@@ -6,6 +6,9 @@ services:
environment:
- PREFER_HOST_MODE=hostname
- MODE=standalone
- NACOS_AUTH_IDENTITY_KEY=serverIdentity
- NACOS_AUTH_IDENTITY_VALUE=security
- NACOS_AUTH_TOKEN=SecretKey012345678901234567890123456789012345678901234567890123456789
volumes:
- ./standalone-logs/:/home/nacos/logs
ports: