Giter VIP home page Giter VIP logo

docker-letsencrypt-nginx-proxy-companion-examples's Introduction

docker-letsencrypt-nginx-proxy-companion-examples

This repository is meant to be a starting point for working with nginx-proxy, docker-gen and docker-letsencrypt-nginx-proxy-companion by providing basic working bootstrapped examples that combines them.

Choosing how to run things

Running docker containers can be done either using the command line interface (CLI), or using docker-compose

docker run

Replace all the default "site.example.com" and "[email protected]" occurrences in docker-run/simple-site/docker-run.sh for your publicly accessible domain redirecting to the server running the script.

$ ./docker-run.sh

docker-compose v1

While docker-compose v1 file version isn't advised for starting new project, docker-gen hasn't yet officially resolved the issue raised by new networking in docker-compose v2, you might find it easier to stick with v1.

Replace all the default "site.example.com" and "[email protected]" occurrences in docker-compose/v1/simple-site/docker-compose.yml for your publicly accessible domain redirecting to the server running the script.

$ docker-compose up

docker-compose v2

V2 support for docker-gen is being done through @almereyda's unofficial solution. See above for compose v1.

Replace all the default "site.example.com" and "[email protected]" occurrences in docker-compose/v2/simple-site/docker-compose.yml for your publicly accessible domain redirecting to the server running the script.

First, you'll need to create an external docker network named 'nginx-proxy' (or change the name in compose file).

docker network create -d bridge nginx-proxy

You'll only need to do this once.

$ docker-compose up

Debugging

You should use docker logs to see the output of your daemonized containers.

$ docker logs nginx

You can also checkout the docker-gen generated "default.conf" file using docker exec

$ docker exec -it nginx-gen cat /etc/nginx/conf.d/default.conf

Notes

If you want to help out the community, feel free to submit a PR with other examples for popular site/apps such as Wordpress, ghost...

I'll try to add some myself provided this repo gets enough stars.

docker-letsencrypt-nginx-proxy-companion-examples's People

Contributors

fatk avatar jrcs avatar

Watchers

 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.