Skip to content

Instantly share code, notes, and snippets.

@rindek
Created November 16, 2017 10:08
Show Gist options
  • Save rindek/f2b5ccf5271ece42abd9554557d3df18 to your computer and use it in GitHub Desktop.
Save rindek/f2b5ccf5271ece42abd9554557d3df18 to your computer and use it in GitHub Desktop.
Basic docker-compose config file to run nginx-proxy
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