Created
May 31, 2023 04:10
-
-
Save lvnilesh/3cae314fdbee89f70c954db705e7599d to your computer and use it in GitHub Desktop.
docker-compose.yaml
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: '2' | |
services: | |
nginx-proxy: | |
image: nginxproxy/nginx-proxy | |
container_name: nginx-proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- conf:/etc/nginx/conf.d | |
- vhost:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
- certs:/etc/nginx/certs:ro | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
network_mode: bridge | |
acme-companion: | |
image: nginxproxy/acme-companion | |
container_name: nginx-proxy-acme | |
environment: | |
- DEFAULT_EMAIL=your@email.address | |
volumes_from: | |
- nginx-proxy | |
volumes: | |
- certs:/etc/nginx/certs:rw | |
- acme:/etc/acme.sh | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
network_mode: bridge | |
nginx3: | |
image: nginx | |
expose: | |
- "80" | |
volumes: | |
- /root/content:/usr/share/nginx/html:ro | |
environment: | |
- VIRTUAL_HOST=subdomain.domain.TLD | |
- VIRTUAL_PORT=80 | |
- LETSENCRYPT_HOST=subdomain.domain.TLD | |
network_mode: bridge | |
volumes: | |
conf: | |
vhost: | |
html: | |
certs: | |
acme: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment