将日志目录映射到宿主机./logs
This commit is contained in:
+2
-1
@@ -36,9 +36,10 @@ services:
|
||||
- OPEN_API_SECRET=${OPEN_API_SECRET}
|
||||
- OPEN_SIGN_SKEW=${OPEN_SIGN_SKEW:-300}
|
||||
- OPEN_API_DEBUG=${OPEN_API_DEBUG:-false}
|
||||
- LOG_FILE=/data/app.log
|
||||
- LOG_FILE=${LOG_FILE:-logs/app.log}
|
||||
volumes:
|
||||
- backend-data:/data
|
||||
- ./logs:/app/logs
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-fsS", "http://localhost:8080/health"]
|
||||
|
||||
Reference in New Issue
Block a user