Skip to content

Instantly share code, notes, and snippets.

@michaelgold
Created December 23, 2019 16:10
Show Gist options
  • Save michaelgold/5f453b07bf69d660c28bb6277e5fe78f to your computer and use it in GitHub Desktop.
Save michaelgold/5f453b07bf69d660c28bb6277e5fe78f to your computer and use it in GitHub Desktop.
Wordpress Docker NGINX Letsencrpyt
https-portal:
image: steveltn/https-portal:1
ports:
- '80:80'
- '443:443'
links:
- wordpress
restart: always
environment:
DOMAINS: 'wordpress.mike.gold -> http://wordpress:80'
STAGE: 'production'
# FORCE_RENEW: 'true'
wordpress:
restart: always
image: wordpress
links:
- db:mysql
volumes:
- ./wp-app:/var/www/html
db:
restart: always
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: "<SECRET>"
volumes:
- ./wp-data:/var/lib/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment