mirror of
https://github.com/Gouryella/drip.git
synced 2026-03-01 15:52:32 +00:00
feat: Add HTTP streaming, compression support, and Docker deployment
enhancements - Add adaptive HTTP response handling with automatic streaming for large responses (>1MB) - Implement zero-copy streaming using buffer pools for better performance - Add compression module for reduced bandwidth usage - Add GitHub Container Registry workflow for automated Docker builds - Add production-optimized Dockerfile and docker-compose configuration - Simplify background mode with -d flag and improved daemon management - Update documentation with new command syntax and deployment guides - Clean up unused code and improve error handling - Fix lipgloss style usage (remove unnecessary .Copy() calls)
This commit is contained in:
72
docker-compose.release.yml
Normal file
72
docker-compose.release.yml
Normal file
@@ -0,0 +1,72 @@
|
||||
# Docker Compose for deploying drip-server from GitHub Release
|
||||
#
|
||||
# Usage:
|
||||
# 1. Copy this file to your server
|
||||
# 2. Create .env file with your settings (see .env.example below)
|
||||
# 3. Run: docker compose -f docker-compose.release.yml up -d
|
||||
#
|
||||
# Environment variables (.env.example):
|
||||
# DOMAIN=tunnel.example.com
|
||||
# AUTH_TOKEN=your-secret-token
|
||||
# VERSION=latest
|
||||
# TZ=UTC
|
||||
|
||||
services:
|
||||
drip-server:
|
||||
image: ghcr.io/gouryella/drip:${VERSION:-latest}
|
||||
container_name: drip-server
|
||||
restart: unless-stopped
|
||||
|
||||
ports:
|
||||
- "443:443"
|
||||
- "20000-20100:20000-20100" # TCP tunnel ports
|
||||
|
||||
volumes:
|
||||
- ./certs:/app/data/certs:ro
|
||||
- drip-data:/app/data
|
||||
|
||||
environment:
|
||||
TZ: ${TZ:-UTC}
|
||||
|
||||
command: >
|
||||
server
|
||||
--domain ${DOMAIN:-tunnel.localhost}
|
||||
--port 443
|
||||
--tls-cert /app/data/certs/fullchain.pem
|
||||
--tls-key /app/data/certs/privkey.pem
|
||||
--token ${AUTH_TOKEN:-}
|
||||
--tcp-port-min 20000
|
||||
--tcp-port-max 20100
|
||||
|
||||
networks:
|
||||
- drip-net
|
||||
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '2'
|
||||
memory: 512M
|
||||
reservations:
|
||||
cpus: '0.25'
|
||||
memory: 64M
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:443/health"]
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
volumes:
|
||||
drip-data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
drip-net:
|
||||
driver: bridge
|
||||
Reference in New Issue
Block a user