I'm trying to set up docker secrets
I've created a folder /volume2/docker/secrets with a secrets file DBPASS
I've confirmed I can see it and access it, however I get:
The bits from my docker compose:
What have I done wrong?
Any help greatly appreciated.
I've since found out that this is no more secure than .env which I'm already using, however can't delete the thread.
I've created a folder /volume2/docker/secrets with a secrets file DBPASS
I've confirmed I can see it and access it, however I get:
Code:
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /volume2/docker/secrets/DPBASS
Code:
########################### SECRETS
secrets:
DBPASS:
file: $SECRETSDIR/DPBASS
########################### SERVICES
services:
joplin:
image: joplin/server:latest
container_name: joplin
hostname: joplin
secrets:
- DBPASS
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/DBPASS
What have I done wrong?
Any help greatly appreciated.
I've since found out that this is no more secure than .env which I'm already using, however can't delete the thread.