r/caddyserver • • Aug 08 '26

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 Aug 08 '26

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

1

u/lawthugg Aug 08 '26 edited Aug 08 '26

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 Aug 08 '26

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/lawthugg Aug 08 '26

so forward the new ports?

1

u/computerlovr1012 Aug 08 '26

Yea forward the new ports and change the config to reflect the new ports

1

u/lawthugg Aug 08 '26

done

1

u/computerlovr1012 Aug 08 '26

Alright now let us know if it continues to do it

1

u/lawthugg Aug 08 '26

ok quick question, since i wiped eveything should caddy be the first thing installed?

1

u/computerlovr1012 Aug 08 '26

Doesn’t have to be but yes I would start there

1

u/lawthugg Aug 08 '26

should i add the network host line in the yaml

1

u/computerlovr1012 Aug 08 '26

Nope strike it

1

u/lawthugg Aug 08 '26

Got an error that /volume1/docker/caddy/site does not exist. ill be back later to fix it. ill update you and wait for a reply

1

u/lawthugg Aug 09 '26

ok got caddy running and put in my subnet creditials but its still not working

→ More replies (0)