# First step: run the docker and sign up a accountant for yourself
# This is only a temp container for this step
docker run -d \
--name temp \
-e WEBSOCKET_ENABLED=true \
-e SIGNUPS_ALLOWED=true \ # here should be true
-v /your file path/docker/vaultwarden:/data \
-p 8081:80 \
--restart unless-stopped \
vaultwarden/server:latest
# Second step: after you successfully signed up, new acc registerd should be prohibted.
# This can be the formal container for daily use.
docker run -d \
--name vaultwarden \
-e WEBSOCKET_ENABLED=true \
-e SIGNUPS_ALLOWED=false \ # here should be false
-v /your file path/docker/vaultwarden:/data \
-p 8081:80 \
--restart unless-stopped \
vaultwarden/server:latest
# If you want to register new acc, repeat the 2nd step.