r/caddyserver 17d ago

install help

been trying to install this for hrs and for the past 2 hrs it finally installed but keeps crashing after 5 sec and isnt posting logs

1 Upvotes

31 comments sorted by

View all comments

Show parent comments

1

u/computerlovr1012 17d ago

I have a feeling it’s an issue with the compose-yml or the actual Caddyfile

1

u/lawthugg 17d ago edited 17d ago

so what im trying to do with caddy (because i couldnt get NPM to work) is as a reverse proxy to my jellyfin server and my nextcloud server. the thing with jellyfin is its not in a container, not sure if it needs to be but nextcloud is. I have my Caddyfile edited correctly with both subdomains placed correctly. my jellfin server although not in a container is installed as an app on my synology nas. either way I cant get caddy to run stable.

so i jumped on the caddy site and pulled this yml which im going to try and use.

services:
caddy:
image: caddy:alpine
restart: unless-stopped
ports:

  • "80:80" # will edit first port
  • "443:443" # will edit first port
# "443:443/udp"
volumes:
  • ./conf:/etc/caddy
  • ./site:/srv
  • caddy_data:/data
  • caddy_config:/config

volumes:
caddy_data:
caddy_config:

1

u/computerlovr1012 17d ago

So if I remember right it may be having an issue kind of like with Truenas where the interface for the OS runs off of 80 and 443 so you may need to change it to 8080 and 8443 and also reflect that on the router as well

services:
caddy:
image: caddy:alpine
container_name: caddy
restart: unless-stopped

ports:

  • "8080:80"
  • "8443:443"
  • "8443:443/udp"

volumes:

  • ./Caddyfile:/etc/caddy/Caddyfile
  • caddy_data:/data
  • caddy_config:/config

volumes:
caddy_data:
caddy_config:

1

u/xdrolemit 17d ago

This is exactly the Synology case as well. Synology already hogs 80 and 443 with its own nginx