Created
October 4, 2021 10:46
-
-
Save exzork/2ba17f6590eae4e2ea44561e4ac72b7e to your computer and use it in GitHub Desktop.
docker-compose file for nginx-proxy with acme-companion
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" | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
container_name: nginx-proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
- certs:/etc/nginx/certs | |
- vhost:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
acme-companion: | |
image: nginxproxy/acme-companion | |
container_name: acme-companion | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
- acme:/etc/acme.sh | |
- certs:/etc/nginx/certs | |
- vhost:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
environment: | |
DEFAULT_EMAIL: [email protected] | |
NGINX_PROXY_CONTAINER: nginx-proxy | |
volumes: | |
certs: | |
vhost: | |
html: | |
acme: | |
networks: | |
default: | |
external: | |
name: nginx-proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And then how do you add your own actual application here?