Zio Mc on Nostr: I use the stack ,it works great services: nginx-proxy: container_name: nginx-proxy ...
I use the stack ,it works great
services:
nginx-proxy:
container_name: nginx-proxy
image: jwilder/nginx-proxy
logging:
options:
max-size: "10m"
max-file: "3"
restart: always
volumes:
- nginx-certs:/etc/nginx/certs
- nginx-vhost:/etc/nginx/vhost.d
- nginx-html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "80:80"
- "443:443"
networks:
- proxy-frontend
letsencrypt-nginx-proxy-companion:
hostname: nginx-proxy-letsencrypt
image: jrcs/letsencrypt-nginx-proxy-companion
logging:
options:
max-size: "10m"
max-file: "3"
restart: always
volumes:
- nginx-certs:/etc/nginx/certs
- nginx-vhost:/etc/nginx/vhost.d
- nginx-html:/usr/share/nginx/html
- /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
DEFAULT_EMAIL: "servers@ziomc.com"
NGINX_PROXY_CONTAINER: "nginx-proxy"
volumes:
nginx-certs: {}
nginx-vhost: {}
nginx-html: {}
networks:
proxy-frontend:
external: true
Published at
2025-01-27 20:53:06Event JSON
{
"id": "be8e93a44b95099c2d116e03b43824bf99a3772026c51c5cf4818882847a25e4",
"pubkey": "dc1be7fdba0c8a1bf9065cdee45c948d574e780f74894251e9c95d16432655b9",
"created_at": 1738011186,
"kind": 1,
"tags": [
[
"e",
"f32d6221c4ac744037fc0f738adfd4ea48103eee727536cef6bed4a2a289f650",
"",
"root"
],
[
"p",
"1739d937dc8c0c7370aa27585938c119e25c41f6c441a5d34c6d38503e3136ef"
],
[
"r",
"docker.sock:/tmp/docker.sock:ro"
],
[
"r",
"docker.sock:/var/run/docker.sock:ro"
],
[
"r",
"\"servers@ziomc.com"
]
],
"content": "I use the stack ,it works great \n\nservices:\n nginx-proxy:\n container_name: nginx-proxy\n image: jwilder/nginx-proxy\n logging:\n options:\n max-size: \"10m\"\n max-file: \"3\"\n restart: always\n\n volumes:\n - nginx-certs:/etc/nginx/certs\n - nginx-vhost:/etc/nginx/vhost.d\n - nginx-html:/usr/share/nginx/html\n - /var/run/docker.sock:/tmp/docker.sock:ro\n - /etc/timezone:/etc/timezone:ro\n - /etc/localtime:/etc/localtime:ro\n ports:\n - \"80:80\"\n - \"443:443\"\n networks:\n - proxy-frontend\n\n letsencrypt-nginx-proxy-companion:\n hostname: nginx-proxy-letsencrypt\n image: jrcs/letsencrypt-nginx-proxy-companion\n logging:\n options:\n max-size: \"10m\"\n max-file: \"3\"\n restart: always\n volumes:\n - nginx-certs:/etc/nginx/certs\n - nginx-vhost:/etc/nginx/vhost.d\n - nginx-html:/usr/share/nginx/html\n - /var/run/docker.sock:/var/run/docker.sock:ro\n - /etc/timezone:/etc/timezone:ro\n - /etc/localtime:/etc/localtime:ro\n environment:\n DEFAULT_EMAIL: \"servers@ziomc.com\"\n NGINX_PROXY_CONTAINER: \"nginx-proxy\"\n\nvolumes:\n nginx-certs: {}\n nginx-vhost: {}\n nginx-html: {}\n\nnetworks:\n proxy-frontend:\n external: true",
"sig": "6b89cb0d0bf90d869e37f75aac0a50b727d114a5809bdab51339019f7e6c7ea242dce5cb8d43e66d993620b2a11d841c3b2bcb7ce77149f1ea5fe1a39dc35b4b"
}