[SOLVED] SSL access fails, SSL_ERROR_INTERNAL_ERROR_ALERT

I installed vaultwarden and caddy today. My docker-compose.yml file looks like this:

version: ‘3’

services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: always
environment:
- WEBSOCKET_ENABLED=true # Enable WebSocket notifications.
volumes:
- ./vw-data:/data

caddy:
image: caddy:2
container_name: caddy
restart: always
ports:
- 80:80 # Needed for the ACME HTTP-01 challenge.
- 443:443
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./caddy-config:/config
- ./caddy-data:/data
environment:
- DOMAIN=https://vaultwarden.voyager.local
- EMAIL=me@posteo.de
- LOG_FILE=/data/access.log

Unfortunately, I can’t access vaultwarden. When accessing https://vaultwarden.voyager.local/ I get the error message:

An error occurred during a connection to vaultwarden.voyager.local. Peer reports it experienced an internal error.
Error code: SSL_ERROR_INTERNAL_ERROR_ALERT

I can reproduce the result with current versions of firefox and chromium.

Unfortunately, I can’t find a log file in the Docker container that would help me.
Does anyone have an idea what to do, or how I can track down the cause of the error?

Solved. I didn’t really understand how Lets Encrypt works…
Using the correct domain and configuring port forwarding in my router solved this problem.