Unable to start Vaultwarden container on Synology Portainer install

New install. Followed the mariushosting steps here

Problem:
Container [Vaultwarden] error: curl: (7) Failed to connect to localhost port 4020 after 0 ms: Couldn’t connect to server

Double checked configuration in Synology:
a) Reverse Proxy:
General:
Source is HTTPS, vaultwarden. xx. synology. me, port 443. HSTS checked.
Destination: HTTP, localhost, port 4080
Custom Header: Websocket. Upgrade: $http_upgrade, Connection $connection_ugrade
b) Network/Connectivity: HTTP/2 is Enabled
c) Security/Advanced: HTTP compression Enabled
d) File Station: docker/vaultwarden/data and db folders created
e) Portainer - Success Stack successfully deployed
f) Portainer container - [Vaultwarden-DB] as running and in healthy state
g) Firewall: Disabled firewall temporarily, but same result

Rechecked:

  • Router: Port forwarded… External 443-> Internal 443 (internal IP address)

Endless nights of testing, so any other suggestions would be greatly appreciated!

I followed this tutorial for synology and it works fine. It was on DSM 7.1 at the time and docker on DSM 7.2 has changed a bit so YMMV. No issues other than having to enable WebSocket notifications when configuring reverse proxy as someone commented on the video.

I use this utility for getting update notifications and it says “Not working well with containers created by Portainer”. I would pick a tutorial without Portainer but I’m no docker expert and no DSM expert (yet have zero issues).

This utility works great for backups on my synology setup.