# Vaultwarden

# Preparation
## Docker Compose

Install Docker

```
sudo apt install docker.io
```
Install Docker Compose
```
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
```

# Install

Create the file `compose.yaml` with this content:
```
services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: unless-stopped
    environment:
      DOMAIN: "https://vw.domain.tld"
    volumes:
      - ./vw-data/:/data/
    ports:
      - 80:80
```
Start the Container with:
```
docker-compose -f compose.yaml up -d
```

# Sources
- [Docker-Compose](https://wiki.crowncloud.net/?How_to_Install_and_use_Docker_Compose_on_Ubuntu_24_04)
- [Vaultwarden](https://github.com/dani-garcia/vaultwarden)