Created
November 1, 2017 23:22
-
-
Save dmitrym0/cbffcf5feef7c2ad23a83ee10d905d9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
wordpress: | |
image: wordpress:4.7-apache | |
volumes: | |
- "/var/blog/wordpress:/var/www/html" | |
environment: | |
WORDPRESS_DB_PASSWORD: passwordd | |
VIRTUAL_HOST: myblog.com | |
LETSENCRYPT_HOST: myblog.com | |
LETSENCRYPT_EMAIL: [email protected] | |
mysql: | |
image: mariadb | |
volumes: | |
- "/var/blog/mysql:/var/lib/mysql" | |
environment: | |
MYSQL_ROOT_PASSWORD: passwordd | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- "/etc/nginx/vhost.d" | |
- "/usr/share/nginx/html" | |
- "/var/run/docker.sock:/tmp/docker.sock:ro" | |
- "/etc/nginx/certs" | |
letsencrypt-nginx-proxy-companion: | |
image: jrcs/letsencrypt-nginx-proxy-companion | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock:ro" | |
volumes_from: | |
- "nginx-proxy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment