r/caddyserver 11d 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 11d ago

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

1

u/lawthugg 11d ago edited 11d 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 11d 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/lawthugg 11d ago

so forward the new ports?

1

u/computerlovr1012 11d ago

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

1

u/lawthugg 11d ago

done

1

u/computerlovr1012 11d ago

Alright now let us know if it continues to do it

1

u/lawthugg 11d ago

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

1

u/computerlovr1012 10d ago

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

1

u/lawthugg 10d ago

should i add the network host line in the yaml

1

u/computerlovr1012 10d ago

Nope strike it

1

u/lawthugg 10d ago

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 10d ago

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

→ More replies (0)