Created
October 19, 2021 06:35
-
-
Save j-brn/b103cc4aa62aca67a107927a232d2437 to your computer and use it in GitHub Desktop.
nginx-proxy docker-compose
This file contains hidden or 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' | |
| services: | |
| nginx-proxy: | |
| image: nginxproxy/nginx-proxy | |
| restart: always | |
| ports: | |
| - 80:80 | |
| - 443:443 | |
| volumes: | |
| - conf:/etc/nginx/conf.d | |
| - vhost:/etc/nginx/vhost.d | |
| - html:/usr/share/nginx/html | |
| - dhparam:/etc/nginx/dhparam | |
| - certs:/etc/nginx/certs:ro | |
| - /var/run/docker.sock:/tmp/docker.sock:ro | |
| labels: | |
| - 'com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy' | |
| networks: | |
| - proxynet | |
| nginx-proxy-letsencrypt: | |
| image: nginxproxy/acme-companion | |
| restart: always | |
| volumes: | |
| - vhost:/etc/nginx/vhost.d | |
| - html:/usr/share/nginx/html | |
| - certs:/etc/nginx/certs:rw | |
| - acme:/etc/acme.sh | |
| - /var/run/docker.sock:/var/run/docker.sock:ro | |
| volumes: | |
| conf: | |
| vhost: | |
| html: | |
| dhparam: | |
| certs: | |
| acme: | |
| networks: | |
| proxynet: | |
| external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment