Skip to content

Instantly share code, notes, and snippets.

@dmitrym0
Created November 1, 2017 23:22
Show Gist options
  • Save dmitrym0/cbffcf5feef7c2ad23a83ee10d905d9d to your computer and use it in GitHub Desktop.
Save dmitrym0/cbffcf5feef7c2ad23a83ee10d905d9d to your computer and use it in GitHub Desktop.
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