https://github.com/duckthom/nginx-proxy
Docker compose config for nginx-proxy
https://github.com/duckthom/nginx-proxy
docker docker-compose nginx-proxy
Last synced: about 1 month ago
JSON representation
Docker compose config for nginx-proxy
- Host: GitHub
- URL: https://github.com/duckthom/nginx-proxy
- Owner: DuckThom
- License: mit
- Created: 2016-11-11T15:11:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-06T09:26:37.000Z (over 9 years ago)
- Last Synced: 2024-12-29T16:45:56.418Z (over 1 year ago)
- Topics: docker, docker-compose, nginx-proxy
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nginx-proxy
Docker compose wrapper for [jwilder/nginx-proxy](https://github.com/jwilder/nginx-proxy) which I use primarily when developing
## Clone
`git clone https://github.com/DuckThom/nginx-proxy proxy`
## Setup
`jwilder/nginx-proxy` settings and options can be found [here](https://github.com/jwilder/nginx-proxy/blob/master/README.md)
## Config
- Proxy-wide settings should go in `conf.d/overrides.conf`, NOT in `conf.d/default.conf` as that file is auto-generated and will be overwritten when a container state changes. [More info](https://github.com/jwilder/nginx-proxy#proxy-wide)
- Vhost-specific settings should go in `vhost.d/{VIRTUAL_HOST}`. If the VIRTUAL_HOST env var of a container is `blaat.dev` then the config file should also be named `blaat.dev`. [More info](https://github.com/jwilder/nginx-proxy#per-virtual_host)
## Connect other containers
```
version: '2'
services:
someWebServerContainer:
image: nginx
environment:
VIRTUAL_HOST: "app.dev" # Required for nginx-proxy
expose:
- "80"
- "443"
networks:
- default # Keep the container connected to it's own network
- proxy # The network where nginx-proxy is running
networks:
proxy:
external:
name: proxy_default
```