/dumb-http-server

Dumb HTTP server to serve static files without any extra features

Primary LanguageDockerfileMIT LicenseMIT

dumb-http-server

Docker MicroBadger Size

Literally the dumbest http server. I use it to serve static files through Traefik

How to use

For example we want to serve contents of ./static/* folder via yourdomain.com/static/*.

services:
  static:
    image: pr0ger/dumb-http-server
    volumes:
      - ./static:/data
    labels:
      - "traefik.backend=static"
      - "traefik.frontend.rule=PathPrefixStrip:/static;Host:yourdomain.com"
      - "traefik.port=80"
      - "traefik.enable=true"

License

MIT