testtinywebserver

Tiny WebServer Docker Image

https://github.com/humbertovvaronafong/testtinywebserver

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Tiny WebServer Docker Image

Basic Info
  • Host: GitHub
  • Owner: humbertovvaronafong
  • License: cc0-1.0
  • Language: Shell
  • Default Branch: main
  • Size: 15.6 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation Authors

README.md

Tiny WebServer Docker Image

This Docker image provides a compact and efficient web server designed for simple deployments, custom configurations, and optional HTTPS support. It offers out-of-the-box features such as automatic certificate generation, time zone configuration, and HTTP to HTTPS redirection—all managed via environment variables for maximum flexibility.

🐳 How to Run

You can run the container in three different modes:

1. HTTP Mode (No HTTPS)

bash docker run -d --name testtinywebserver \ -e TIMEZONE=America/Havana \ -p 8080:80 \ -v $(pwd)/config:/config \ humbertovvaronafong/tiny-webserver

2. HTTPS Mode with Automatic Certificates (Let's Encrypt)

bash docker run -d --name testtinywebserver \ -e TIMEZONE=America/Havana \ -e REDIRECT_TO_HTTPS=yes \ -e AUTOCERT=yes \ -p 8443:443 \ -v $(pwd)/config:/config \ humbertovvaronafong/tiny-webserver

3. HTTPS Mode with Manual Certificates

bash docker run -d --name testtinywebserver \ -e TIMEZONE=America/Havana \ -e REDIRECT_TO_HTTPS=yes \ -e AUTOCERT=no \ -p 8443:443 \ -v $(pwd)/config:/config \ humbertovvaronafong/tiny-webserver

4. Docker Compose Example

You can also use Docker Compose to manage the container:

version: '3.8' services: tinywebserver: image: humbertovvaronafong/tiny-webserver container_name: testtinywebserver ports: - "8080:80" - "8443:443" environment: - TIMEZONE=America/Havana - REDIRECT_TO_HTTPS=yes - AUTOCERT=yes volumes: - ./config:/config restart: unless-stopped

Start the service:

bash docker-compose up -d

🌐 Accessing the Web Server

Use your browser to access the server:

HTTP Mode

http://192.168.1.4:8080/

HTTPS Mode

https://192.168.1.4:8443/

🩺 Health Check

To inspect the container's health status:

bash docker inspect --format='{{json .State.Health}}' testtinywebserver | jq

📄 Logs

To view the logs from the container:

bash docker logs testtinywebserver


⚙️ Environment Variables

| Variable | Description | Default Value | | ------------------------ | ----------------------------------------------------------------------- | ------------- | | TIMEZONE | Sets the system timezone inside the container. | UTC | | NGINX_WORKER_PROCESSES | Defines the number of worker processes for NGINX. | auto | | REDIRECT_TO_HTTPS | Enables HTTP to HTTPS redirection (yes or no). | no | | AUTOCERT | Enables automatic HTTPS certificates via Let's Encrypt (yes or no). | no | | CERT_WARN_DAYS | Days before certificate expiration to trigger a renewal or warning. | 30 |


🔗 Main repository


👤 Author

Humberto Vinlay Varona-Fong 📧 hvinlay.varona@gmail.com


🪪 License

This project is licensed under the Creative Commons Zero (CC0) license. You are free to use, modify, and distribute without restriction.

How to cite

Varona-Fong, H. V. (2025). Tiny WebServer Docker Image (1.0). Zenodo. https://doi.org/10.5281/zenodo.15399437

Owner

  • Login: humbertovvaronafong
  • Kind: user
  • Location: Santiago de Cuba
  • Company: Hospital Psiquiatrico Provincial Docente Gustavo Machin

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: "Tiny WebServer Docker Image"
version: "v1.0"
doi: "10.5281/zenodo.15399437"
date-released: 2025-02-07
authors:
  - family-names: Varona-Fong
    given-names: Humberto V.
    name: H. V. Varona-Fong
license: "CC0"
preferred-citation:
  type: software
  title: "Tiny WebServer Docker Image"
  version: "v1.0"
  doi: "10.5281/zenodo.15399437"
  authors:
    - name: H. V. Varona-Fong
  publisher: "Zenodo"
  year: 2025

GitHub Events

Total
  • Watch event: 1
  • Push event: 5
  • Create event: 2
Last Year
  • Watch event: 1
  • Push event: 5
  • Create event: 2

Dependencies

Dockerfile docker
  • alpine 3.21 build