Created
October 30, 2017 16:11
-
-
Save autoize/b2082141f4642dedce9553a6c3dc0dcb to your computer and use it in GitHub Desktop.
Revisions
-
autoize created this gist
Oct 30, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,72 @@ version: "2" services: ghost: image: ghost volumes: - ghostdata:/var/lib/ghost/content environment: - url=https://example.com - database__client=mysql - database__connection__host=db - database__connection__user=ghostdb - database__connection__password=secret - database__connection__database=ghostdb - VIRTUAL_HOST=example.com,www.example.com - VIRTUAL_PORT=2368 - LETSENCRYPT_HOST=example.com,www.example.com - [email protected] networks: - ghost depends_on: - db restart: unless-stopped db: image: mariadb volumes: - ghostdb:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=supersecret - MYSQL_DATABASE=ghostdb - MYSQL_USER=ghostdb - MYSQL_PASSWORD=secret networks: - ghost restart: unless-stopped nginx-proxy: image: jwilder/nginx-proxy volumes: - certs:/etc/nginx/certs:ro - /etc/nginx/vhost.d - /usr/share/nginx/html - /var/run/docker.sock:/tmp/docker.sock:ro ports: - "80:80" - "443:443" networks: - ghost labels: com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "" restart: unless-stopped letsencrypt: image: jrcs/letsencrypt-nginx-proxy-companion volumes: - certs:/etc/nginx/certs - /var/run/docker.sock:/var/run/docker.sock:ro volumes_from: - nginx-proxy networks: - ghost restart: unless-stopped volumes: certs: ghostdb: ghostdata: networks: ghost: