v0.0.3
π FAST v0.0.3: Containerized Deployment with Docker Compose! π³
This release focuses on making FAST easier to deploy and manage using Docker Compose, with emphasis on configuration flexibility and operational reliability.
New Features:
- π³ Docker Compose support for easy deployment
- π§ Environment-based configuration
- π Simplified volume management
- π Container health monitoring
- π¦ Automatic container restart
- π Resource limit management
Key Improvements:
- π οΈ Streamlined deployment process
- βοΈ Flexible configuration through .env file
- π¦ Consistent runtime environment
- π Enhanced logging setup
- π Network isolation
- π Read-only volume mounts for security
Configuration Files:
docker-compose.yaml:
version: '3.8'
x-default-volumes: &default-volumes
- ${CONFIG_PATH:-./config.yaml}:/etc/fast/config.yaml:ro
- ${SSL_PATH:-./ssl}:/etc/fast/ssl:ro
- ${WWW_PATH:-./www}:/var/www/fast:ro
- ${LOG_PATH:-./logs}:/var/log/fast
services:
fast-server:
build:
context: .
dockerfile: Dockerfile
ports:
- "${HTTP_PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"
volumes: *default-volumes
environment:
- GO_ENV=production
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3.env
# Host Directory Paths
CONFIG_PATH=./config.yaml
SSL_PATH=./ssl
WWW_PATH=./www
LOG_PATH=./logs
# Server Ports
HTTP_PORT=80
HTTPS_PORT=443
Quick Start
# Initialize development environment
make init-dev
# Start the server
make docker-compose-up
Full Documentation
- Please see Readme.md