0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-06-08 15:08:58 +02:00

added exception to the $$ escape case.

Mathijs van Veluw 2023-03-27 12:32:49 +02:00
parent d35aa7c143
commit 52d440f8f3

@ -99,4 +99,35 @@ WARNING: The argon2id variable is not set. Defaulting to a blank string.
WARNING: The v variable is not set. Defaulting to a blank string.
WARNING: The m variable is not set. Defaulting to a blank string.
...
```
```
<br>
**⚠️ Note:** This is not the case when using a `.env` file for `docker-compose.yaml`<br>
As shown below. In this case just use the single `$` variant.<br>
The same for using the docker/podman cli using `-e ADMIN_TOKEN`.
```
/docker-data
├── .env
├── docker-compose.yaml
├── vaultwarden/data
```
**.env:**
```bash
VAULTWARDEN_ADMIN_TOKEN='$argon2id$v=19$m=65540,t=3,p=4$MmeK.....`
```
**docker-compose.yaml:**
```yaml
services:
vaultwarden:
image: ghcr.io/dani-garcia/vaultwarden
container_name: vaultwarden
restart: unless-stopped
volumes:
- /path/to/vaultwarden/data/:/data/
environment:
- ADMIN_TOKEN=${VAULTWARDEN_ADMIN_TOKEN}
```