Coder Social home page Coder Social logo

nginx-ghost-stack's Introduction

Nginx Ghost Stack for Docker Cloud

A preconfigured Docker Cloud Stack for running Ghost blog Services.

See this blog post for more detail.

Usage

Deploy to Docker Cloud

See docker-cloud.yml for reference.

Features

This stack provides the following:

  • An Nginx reverse proxy optimised for proxying to Ghost instances
  • automated (creation and renewal) SSL/TLS encryption using Let's Encrypt
  • which enables serving HTTP/2 for supported clients

Nginx reverse proxy

A variant of the docker-gen project, supporting Docker Cloud, is used in conjunction with a Nginx Alpine based image in the "Seperate Container Install" configuration to provide the reverse proxying. The Alpine version of the official Nginx image allows the use of HTTP/2. Unfortunately the jessie based image does not yet support HTTP/2 because of this issue.

Nginx is optimised for serving Ghost instances using the ghost-nginx-proxy-template image. In addition, Ghost themes based on the "Developing a Ghost theme with gulp" series will be able to take advantage of the asset caching strategies.

The docker-gen-docker-cloud image is used to watch for new Ghost Services and automatically reload the Nginx proxy (by redeploying the Nginx Service) with the relevant Nginx server blocks configuration.

Let's Encrypt

The docker-letsencrypt-nginx-proxy-companion image is used to allow automatic creation and renewal of Let'sd Encrypt issued certificates for proxied Ghost instances. The docker-letsencrypt-nginx-proxy-companion-docker-cloud image is a fork of docker-letsencrypt-nginx-proxy-companion but with support for Docker Cloud.

Staging API

By default the Let's Encrypt staging URI (ACME_CA_URI=https://acme-staging.api.letsencrypt.org/directory) is used. This is to facilitate testing and to prevent unwanted rate limiting issues.

Please make sure to switch to the production URI, https://acme-v01.api.letsencrypt.org/directory, when needed.

Building images

To build the docker-gen-docker-cloud and nginx-ghost-proxy-template images, use Docker Compose with docker-compose build.

nginx-ghost-stack's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.