35ee447e50be8326326da28a9a7e8727070fab7b
Alpine :: Nginx
Run Nginx based on Alpine Linux. Small, lightweight, secure and fast 🏔️
Volumes
- /nginx/etc - Directory of vHost config, must end in *.conf (set in /etc/nginx/nginx.conf)
- /nginx/www - Directory of webroot for vHost
- /nginx/ssl - Directory of SSL certificates
Run
docker run --name nginx \
-v .../etc:/nginx/etc \
-v .../www:/nginx/www \
-v .../ssl:/nginx/ssl:ro \
-d 11notes/nginx:[tag]
Defaults
Parameter | Value | Description |
---|---|---|
user |
docker | user docker |
uid |
1000 | user id 1000 |
gid |
1000 | group id 1000 |
Environment
Parameter | Value | Default |
---|---|---|
HEALTHCHECK_PROTO |
http or https | http |
HEALTHCHECK_HOST |
localhost or 127.0.0.1 or a dedicated IP | localhost |
HEALTHCHECK_PORT |
any TCP port | 8080 |
HEALTHCHECK_URL |
any URL, must start with / | / |
Delta
Additional plugins:
module_headers_more
Parent
Built with
Tips
- You can find some examples of special backend configurations
- Don't bind to ports < 1024 (requires root), use NAT/reverse proxy
- Permanent Stroage - Module to store permanent container data via NFS/CIFS and more
Languages
Dockerfile
100%