Created
March 13, 2024 12:55
-
-
Save Khahory/cf4a42fc9d0f980503092b142a821ff7 to your computer and use it in GitHub Desktop.
Tenemos un proxi inverso mas SSL para nuestra web en docker OMG. El sabe a que pagin debe ir por el proxy inverso, si ponen qloq.com entonces el proxy resolvera eso para mi servicio que tenga qloq.com en ENV
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
#https://www.youtube.com/watch?v=S2YFqf4L7l8&t=464s | |
version: '3' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
restart: always | |
environment: | |
- DEFAULT_HOST=qlqokha.xyz | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
- certs:/etc/nginx/certs:ro | |
- vhostd:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
- acme:/etc/acme.sh | |
labels: | |
- com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy | |
letsencrypt: | |
image: jrcs/letsencrypt-nginx-proxy-companion | |
restart: always | |
environment: | |
- NGINX_PROXY_CONTAINER=nginx-proxy | |
volumes: | |
- certs:/etc/nginx/certs:rw | |
- vhostd:/etc/nginx/vhost.d | |
- html:/usr/share/nginx/html | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
- acme:/etc/acme.sh | |
www: | |
image: nginx | |
restart: always | |
expose: | |
- "80" | |
# ports: | |
# - "80:80" | |
environment: | |
- VIRTUAL_HOST=qlqokha.xyz,www.qlqokha.xyz | |
- LETSENCRYPT_HOST=qlqokha.xyz,www.qlqokha.xyz | |
- [email protected] | |
depends_on: | |
- nginx-proxy | |
- letsencrypt | |
volumes: | |
certs: | |
html: | |
vhostd: | |
acme: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment