hi , i installed vault warden but when i add new entry it shows error “error occured…invalid refresh token”
How did you install it? Also, what does your Docker Compose look like? Anything in the logs?
1 Like
i installed it via terminal using this command , havent checked logs as i dnt have much idea :')
sudo docker pull vaultwarden/server:latest sudo docker run -d --name vaultwarden -v /vw-data/:/data/ --restart unless-stopped -p 8080:80 vaultwarden/server:latest
- Can you check the logs:
bash -c "$(wget -qLO - https://raw.githubusercontent.com/bigbeartechworld/big-bear-scripts/master/get-docker-logs/run.sh)"
- Try the incognito browser window so you rule out cache.
Here is a Docker Compose:
# Use version 3.8 of the Docker Compose file format
version: '3.8'
services:
# Define a service named 'vaultwarden'
vaultwarden:
# Specify the Docker image to use. Using the latest version of vaultwarden/server
image: vaultwarden/server:latest
# Set the name of the container to 'vaultwarden'
container_name: vaultwarden
# Define the volume mapping.
# Instead of mapping a host directory, we define a Docker-managed volume.
# This volume is named 'vaultwarden_data' and will be mounted to '/data/' in the container.
volumes:
- vaultwarden_data:/data/
# Map ports from the container to the host.
# This maps port 80 of the container to port 8080 on the host.
# This means you can access Vaultwarden at http://localhost:8080
ports:
- "8080:80"
# Set the restart policy for the container.
# 'unless-stopped' means the container will automatically restart unless
# it has been manually stopped.
restart: unless-stopped
# Define the volumes section to declare Docker-managed volumes.
volumes:
# Declare a volume named 'vaultwarden_data'.
# Docker will manage the storage of this volume on the host system.
vaultwarden_data:
sorry for noob question …i re install vaultwarden and re install with this docker compose ?
You can install it with the provided Docker Compose.
1 Like
sir can you correct me how i need to edit the bottom volume part for new location of data
version: '3.8'
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
volumes:
- /home/pitchabyss/docker/vaultwarden/vaultwarden_data:/data/
ports:
- "8080:80"
restart: unless-stopped
volumes:
vaultwarden_data: