Docker Deployment
Styx provides a multi-stage Dockerfile for building and running the oracle server in a containerized environment.Building the Docker Image
The Dockerfile uses a multi-stage build process to create a minimal production image:Running with Docker
Docker Compose
For production deployments, use Docker Compose to manage the Styx service:Starting the Service
Health Checks
The Docker image includes built-in health checks that monitor the/health endpoint:
- Interval: 30 seconds
- Timeout: 3 seconds
- Start Period: 5 seconds
- Retries: 3 attempts
Multi-Node Deployment
To deploy multiple Styx nodes with Docker Compose:Image Details
- Base Image: Alpine Linux (minimal footprint)
- Build Image: golang:1.21-alpine
- Binary: Statically compiled Go binary (CGO disabled)
- Port: 8080 (HTTP)
- Size: ~20MB (final image)