Docker Compose & CaddyFile #1071
Replies: 4 comments 11 replies
-
Thank you for sharing, Time past and this config appears to be outdated. Some of the environment variables are deprecated. I've updated the config to the latest spec, and it doesn't work anyway. Caddy returns 502. |
Beta Was this translation helpful? Give feedback.
-
This was just a copy paste of the config from - https://github.com/dani-garcia/vaultwarden/wiki/Using-Docker-Compose
I didn't, by the looks of it, seems like everything is ok there, but I will look into it today, closely. My current theory is something to do with firewall rules. I use the UFW to simplify my life on this home setup. While I was tinkering with vaultwarden, I discovered that docker ignores UFW rules and all my docker containers were exposed. This issue has a long trail (some don't consider it an issue) but there were some data leaks related to it in the past. So I used solution from - https://github.com/chaifeng/ufw-docker#solving-ufw-and-docker-issues to fix it. I will update on
|
Beta Was this translation helpful? Give feedback.
-
Made some progress, looks like shlink container is hardwired inside to port 8080, I didn't think of that when
|
Beta Was this translation helpful? Give feedback.
-
Working config from my setup. Shortened to take out the vaultwarden instance from focus.
|
Beta Was this translation helpful? Give feedback.
-
I use caddy as my reverse proxy to my docker. if someone is interested to deploy it using docker compose and use Caddy, you can try this
Docker Compose file: (You can add more variables as you need. I use a mariadb server thats running on another VM which i use for all my projects)
Caddyfile - The top few lines are useful. You can uncomment the "acme_ca" to staging & test before you ask for the real one. this may help you as you dont want to hit the cert request limits. Caddy is very easy to use
Beta Was this translation helpful? Give feedback.
All reactions