mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-01-16 20:50:33 +00:00
added exception to the $$ escape case.
@@ -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 v variable is not set. Defaulting to a blank string.
|
||||||
WARNING: The m 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}
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user