Learning a lot about docker and caddy today. Really wish I wasn't though...

Reply to this note

Please Login to reply.

Discussion

Caddy is great but docker and caddy combined is enough for me to commit seppuku

Self-hosted frees you and binds you at the same time haha

NGINX is way faster, wouldn't use caddy outside hobby projects, if you expect load, use something real

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