Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ionghitun/nginx-proxy
Example using docker-compose with nginx-proxy and acme companion.
https://github.com/ionghitun/nginx-proxy
acme-companion docker docker-compose nginx-proxy
Last synced: 2 months ago
JSON representation
Example using docker-compose with nginx-proxy and acme companion.
- Host: GitHub
- URL: https://github.com/ionghitun/nginx-proxy
- Owner: ionghitun
- License: mit
- Created: 2020-04-20T08:42:12.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-29T13:47:45.000Z (9 months ago)
- Last Synced: 2024-04-29T14:58:52.571Z (9 months ago)
- Topics: acme-companion, docker, docker-compose, nginx-proxy
- Homepage:
- Size: 16.6 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nginx-proxy
Docker-compose for https://github.com/nginx-proxy/nginx-proxy with https://github.com/nginx-proxy/acme-companion.
## Introduction
This is a wrapper for nginx proxy and acme companion so anyone can easily develop multiple projects locally with vhosts
using docker, but also live ready.### Installation notes
- Clone project
- Create global nginx-proxy network: `docker network create nginx-proxy`
- Build container using `docker-compose up -d`### Documentation:
- In `conf/custom.conf` you can add any custom configuration for nginx.
Example on how to use on containers:
services:
web:
...
ports:
- 80
...
environment:
VIRTUAL_HOST: example.com
VIRTUAL_PORT: 80
LETSENCRYPT_HOST: example.com
LETSENCRYPT_EMAIL: [email protected]
...
networks:
...
- nginx-proxyYou can use multiple domains/subdomains:
services:
web:
...
build:
context: ./
dockerfile: web/Dockerfile
ports:
- 80
...
environment:
VIRTUAL_HOST: example.com,sub.example.com,example2.com
VIRTUAL_PORT: 80
LETSENCRYPT_HOST: example.com,sub.example.com,example2.com
LETSENCRYPT_EMAIL: [email protected]
...
networks:
...
- nginx-proxy- In `web/Dockerfile` you can include a conf where you define your servers, wildcards are not yet supported by acme
companion.
- When using in local environment the ssl certificates won't be created and a fallback to http will be created
automatically._Happy coding!_