Run the Docker image:
docker run -p 80:80 -p 443:443 \
-v "~/secrets/certificate.pfx:/etc/nginx/ssl/certificate.pfx" \
-v "~/nginx-ssl.locations:/etc/nginx/conf/vhosts.locations" \
-e "CERTIFICATE_PASSWD=..." \
rrssoftware/nginx:${TAG}
Using docker-compose.yml
version: "3.8"
services:
nginx:
image: rrssoftware/nginx:${TAG}
ports:
- 80:80
- 443:443
volumes:
- "~/secrets/certificate.pfx:/etc/nginx/ssl/certificate.pfx"
- "~/nginx-ssl.locations:/etc/nginx/conf/vhosts.locations"
environment:
- CERTIFICATE_PASSWD
| Variable | Description | Example |
|---|---|---|
| CERTIFICATE_PASSWD | Certificate password (to create key store) |
This image contains a entrypoint script to:
Content type
Image
Digest
sha256:5e626b2ec…
Size
51.1 MB
Last updated
12 months ago
docker pull rrssoftware/nginx:1.19.3