Hi I’m relatively new to self hosting and still learning. I’ve read some of the similar topics and am still confused.
I set my docker-compose.yml to the following:
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: unless-stopped
environment:
DOMAIN: "https://vw.example.com"
SIGNUPS_ALLOWED: "true" # deactivate this with "false" after creating all accounts
ADMIN_TOKEN: RANDOMLYGENERATEDLONGSTRINGWITHALPHANUMERICS
volumes:
- /vw-data/:/data/
caddy:
image: caddy:2
container_name: caddy
restart: always
ports:
- 80:80
- 443:443
- 443:443/udp # Needed for HTTP/3
volumes:
#- ./caddy:/usr/bin/caddy
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./caddy-config:/config
- ./caddy-data:/data
environment:
DOMAIN: "https://vw.example.com"
EMAIL: "myemail@email.com"
LOG_FILE: "/data/access.log"
I restarted the containers with sudo docker compose restart
But when I got to vw.example.com/admin it says
The admin panel is disabled, please configure the 'ADMIN_TOKEN' variable to enable it
What am I missing?
Thanks!