Publish your web application with full managed SSL certificate.
593
Publish your web application with full managed SSL certificate.

Here is an example of running WordPress with custom domain and https.
version: '3'
services:
certfront:
image: hoto17296/certfront
ports:
- 80:80
- 443:443
environment:
DOMAIN: blog.example.com # modify this to your domain
EMAIL: [email protected] # modify this to your email
APP_HOST: wordpress
volumes:
- certs:/etc/letsencrypt
depends_on:
- wordpress
wordpress:
image: wordpress:4
environment:
WORDPRESS_DB_HOST: mysql
volumes:
- app:/var/www/html
depends_on:
- mysql
mysql:
image: mysql:5
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- data:/var/lib/mysql
volumes:
# The certificate and private key are stored on this volume
certs:
driver: local
app:
driver: local
data:
driver: local
Save this to docker-compose.yml and run docker-compose up, then try to access https://blog.example.com.
Content type
Image
Digest
Size
31.3 MB
Last updated
almost 7 years ago
docker pull hoto17296/certfront