Created
November 16, 2017 10:08
-
-
Save rindek/f2b5ccf5271ece42abd9554557d3df18 to your computer and use it in GitHub Desktop.
Basic docker-compose config file to run nginx-proxy
This file contains 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 characters
version: '3.2' | |
services: | |
nginx: | |
image: jwilder/nginx-proxy:latest | |
container_name: nginx_proxy | |
restart: always | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
- /etc/ssl/web:/etc/nginx/certs | |
- /etc/nginx/vhost.d:/etc/nginx/vhost.d | |
- /etc/nginx/conf.d:/etc/nginx/conf.d | |
- /usr/share/nginx/html | |
network_mode: bridge | |
ports: | |
- "80:80" | |
- "443:443" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment