Static Web Server
Cross-platform, high-performance, and asynchronous web server for static file serving.
Directory Structure
- .env
- docker-compose.yml
docker-compose.yml
version: "3.3"
services:
website:
image: joseluisq/static-web-server:2-alpine
container_name: "website"
ports:
- 80:80
restart: unless-stopped
environment:
# Note: those envs are customizable but also optional
- SERVER_ROOT=/var/public
- SERVER_CONFIG_FILE=/etc/config.toml
volumes:
- ./public:/var/public
- ./config.toml:/etc/config.tomlResources
Website: https://static-web-server.net/
GitHub: https://github.com/static-web-server/static-web-server
Docker Hub: https://hub.docker.com/r/joseluisq/static-web-server
Configuration: https://static-web-server.net/features/docker/