fix: add required env vars and network_mode host to deploy

- Add S3 credentials, auth config, and OTel endpoint
- Switch from port mapping to network_mode: host
- Fixes container crash on missing AUTH_API_KEY
This commit is contained in:
向宁 2026-05-17 22:32:47 +08:00
parent 5f3d84a89b
commit 8b08a70dca

11
Jenkinsfile vendored
View File

@ -54,11 +54,18 @@ services:
file-system-server:
image: ${CI_REGISTRY}/${DOCKER_IMAGE}:latest
container_name: file-system-server
ports:
- "8991:8080"
network_mode: host
restart: unless-stopped
environment:
- GIN_MODE=release
- SERVER_PORT=8080
- RUSTFS_ENDPOINT_URL=http://192.168.1.154:9000
- RUSTFS_ACCESS_KEY_ID=minioadmin
- RUSTFS_SECRET_ACCESS_KEY=minioadmin
- RUSTFS_REGION=us-east-1
- AUTH_API_KEY=file-system-api-key-2024
- GRPC_AUTH_ADDR=192.168.1.154:50051
- OTEL_ENDPOINT=192.168.1.154:4316
volumes:
- ./logs:/app/logs
DCOF