Latest Nginx on latest Alpine with latest OpenSSL.
For exact versions see the Dockerfile.
To run it locally on port 8080 use:
docker run --rm -it -p 8080:80 wiktork/alpine-nginx:latest
Use a named tag instead of latest to pin versions.
Nginx inside this container is without configuration. To supply your own configuration files add a volume and explicit option.
Below is a sample Docker Compose file:
web:
image: "wiktork/alpine-nginx:1.17.3-3.10-1.1.1d"
command: ["/nginx/sbin/nginx", "-g", "daemon off;", "-c", "/configuration/nginx.conf"]
ports:
- "80:80"
- "443:443"
volumes:
- /configuration:/configuration
restart: unless-stopped
This image on Docker Hub.
Content type
Image
Digest
Size
7.3 MB
Last updated
about 7 years ago
docker pull wiktork/alpine-nginx