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