A minimal Dockerized static website served with Nginx.
Dockerfile— builds an Nginx image and copieshtml/into the container.html/index.html— static site content.nginx.yml— Ansible playbook to install and run Nginx (local demo).inventory— Ansible inventory for local testing..gitignore— files to ignore.LICENSE— license for the project.
- Build the image:
docker build -t my-nginx .- Run the container and map port 8080:
docker run -d --iveey my-nginx -p 8080:80 my-nginx- Open
http://localhost:8080(orhttp://<host-ip>:8080).
If you add a docker-compose.yml in future, a typical command is:
docker compose up --buildThe included nginx.yml playbook demonstrates installing Nginx using Ansible on localhost.
# run locally (this playbook uses become and will prompt for your sudo password)
ansible-playbook -i inventory nginx.yml --ask-become-pass- GitHub Pages — best for pure static sites. Push
html/to thegh-pagesbranch. - Render / Railway / Fly.io — use your Docker image or connect repository for automated deploys.
- AWS EC2 — copy project to an Ubuntu instance and
docker buildthere or use a registry + user-data.
- Do not commit private keys,
.pemfiles, or.envwith secrets. Add them to.gitignore. - For production, run behind HTTPS (TLS) and use a reverse proxy (managed SSL) or a load balancer.
- Fork the repo.
- Create a topic branch:
git checkout -b feat/add-awesome. - Make small, focused commits with clear messages.
- Open a pull request describing the change and testing steps.
This repository is available under the MIT License. See LICENSE for details.