R
Railway•2y ago
nikivi

Help deploy docker-compose.yml of Caddy server

contents of it
version: "3.9"

services:
caddy:
image: caddy:2.6.4-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv
- caddy_data:/data
- caddy_config:/config

volumes:
caddy_data:
caddy_config:
version: "3.9"

services:
caddy:
image: caddy:2.6.4-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- ./site:/srv
- caddy_data:/data
- caddy_config:/config

volumes:
caddy_data:
caddy_config:
Solution:
Caddy is just a Dockerfile, you can deploy it without docker compose
Jump to solution
9 Replies
Percy
Percy•2y ago
Project ID: N/A
nikivi
nikiviOP•2y ago
Keep Caddy Running - Caddy Documentation
Caddy is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go
nikivi
nikiviOP•2y ago
got it from here thought would be great to deploy on railway
nikivi
nikiviOP•2y ago
nikivi
nikiviOP•2y ago
oh no not supported 😿
Solution
ThallesComH
ThallesComH•2y ago
Caddy is just a Dockerfile, you can deploy it without docker compose
ThallesComH
ThallesComH•2y ago
caddy - Official Image | Docker Hub
Caddy 2 is a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go.
ThallesComH
ThallesComH•2y ago
also, Railway doesn't support persistent volumes, so you woldn't be able to easily store the ssl certificates forget what i said, forgot that Railway does auto-ssl, so just do caddy in HTTP only and you should be safe
Want results from more Discord servers?
Add your server