mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-08 17:17:10 +00:00
start master, volume servers, filer
Current Status ✅ Master: Healthy and running (port 9333) ✅ Filer: Healthy and running (port 8888) ✅ Volume Servers: All 6 servers running (ports 8080-8085) 🔄 Admin/Workers: Will start when dependencies are ready
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
FROM golang:1.24-alpine AS builder
|
||||
|
||||
# Install dependencies
|
||||
RUN apk add --no-cache git build-base
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy and create monitor
|
||||
COPY ./docker/admin_integration/monitor.go .
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o monitor monitor.go
|
||||
|
||||
# Final stage
|
||||
FROM alpine:latest
|
||||
|
||||
# Install dependencies
|
||||
RUN apk --no-cache add curl ca-certificates jq
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
# Copy the binary
|
||||
COPY --from=builder /app/monitor .
|
||||
|
||||
# Copy monitor scripts
|
||||
COPY ./docker/admin_integration/monitor-entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
# Create monitoring directories
|
||||
RUN mkdir -p /monitor-data /logs
|
||||
|
||||
# Expose monitor port
|
||||
EXPOSE 9999
|
||||
|
||||
# Set environment variables
|
||||
ENV MASTER_ADDRESS="master:9333"
|
||||
ENV ADMIN_ADDRESS="admin:9900"
|
||||
ENV FILER_ADDRESS="filer:8888"
|
||||
ENV MONITOR_INTERVAL="10s"
|
||||
ENV LOG_LEVEL="info"
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
|
||||
CMD curl -f http://localhost:9999/health || exit 1
|
||||
|
||||
# Start monitor
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user