Skip to content

v0.0.3

Choose a tag to compare

@allnash allnash released this 22 Oct 00:45
01e7b58

πŸš€ 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