scratch-server 1.0.1

Simple HTTP Server
Documentation
services:
  http-server:
    build: .
    image: chupacabra500/scratch-server:latest
    container_name: http-server
    ports:
      - "7878:7878"
    environment:
      # Server configuration
      - THREADS=12      
      - SILENT=false
      - CORS=false
      - COMPRESSION=true
      
      # Authentication (uncomment and set to enable)
      #- AUTH=username:password
      
      # TLS/SSL (uncomment and set certificate password)
      #- CERT=keyStore.p12
      #- CERT_PASS=testing
    
    volumes:
      # Mount local directory to serve and upload files (read-write)
      # Server always runs from /srv - control file location by mounting to /srv
      - ./testData/public:/srv
      
      # Mount custom index directory (automatically uses /index/index.html if present)
      #- ./testData/public:/index:ro
      # Mount if you want to use a different name than index.html
      #- ./testData/public/custom_index.html:/index/index.html:ro
      
      # Mount certificates if using TLS (uncomment if needed)
      - ./testData/certs:/certs:ro
    
    restart: unless-stopped
    
    # Security options
    security_opt:
      - no-new-privileges:true