Skip to content

Instantly share code, notes, and snippets.

@exzork
Created October 4, 2021 10:46
Show Gist options
  • Save exzork/2ba17f6590eae4e2ea44561e4ac72b7e to your computer and use it in GitHub Desktop.
Save exzork/2ba17f6590eae4e2ea44561e4ac72b7e to your computer and use it in GitHub Desktop.
docker-compose file for nginx-proxy with acme-companion
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
@tbarbette
Copy link

And then how do you add your own actual application here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment