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

Reply to this note

Please Login to reply.

Discussion

No replies yet.