mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #992] Settings Seem To Be Ignored In docker-compose.yml #704
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#704
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yuljk on GitHub (May 11, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/992
Hi - I've configured my docker-compose.yml as per below:-
However, after running docker-compose up -d, Many of my settings are ignored. I am able to create an account without email verification, the admin page is asking me to create a token still etc.
The log file is generated, so that's a start I guess!
Is there some syntax issue I'm not seeing here?
I also tried specifying an .env file and configuring my settings there instead, however it never seems to be read.
Like so ENV_FILE: /etc/bitwardenrs/bw-data/bitwardenrs.env
Any help greatly appreciated!
@jjlin commented on GitHub (May 11, 2020):
environmentis a list; each entry under it needs a-.@yuljk commented on GitHub (May 11, 2020):
Ahh, many thanks @jjlin - Which category would I specify ENV_FILE?
Kind Regards
@jjlin commented on GitHub (May 11, 2020):
See https://docs.docker.com/compose/environment-variables/
@yuljk commented on GitHub (May 11, 2020):
Thanks - I've tried the following and the settings are still not being read
`# docker-compose.yml
version: '3'
services:
bitwarden:
image: bitwardenrs/server
restart: always
volumes:
- /etc/bitwardenrs/bw-data:/data
env_file:
- /etc/bitwardenrs/bw-data/bitwardenrs.env
ports:
- 443:80
`
I'm totally confused, the documentation suggests this should work...
@jjlin commented on GitHub (May 11, 2020):
Your env file might be in the wrong format, see https://docs.docker.com/compose/env-file/
@yuljk commented on GitHub (May 11, 2020):
I'm using https://github.com/dani-garcia/bitwarden_rs/blob/master/.env.template
@dennisgerding commented on GitHub (May 12, 2020):
Did you change settings through the admin panel? Please know that environment variables get overwritten by settings in
config.json.@yuljk commented on GitHub (May 12, 2020):
I've scrapped using docker-compose.yml and instead have opted to install the Debian package here https://github.com/greizgh/bitwarden_rs-debian.
I have installed the package and created the systemd service file. Bitwarden_rs starts successfully, however I don't see it listening on ports 80 or 443 when checking netstat -tulpn | grep LISTEN
The Web UI subsequently isn't accessible. Where do I configure the ports in my .env file?
Many thanks
@yuljk commented on GitHub (May 12, 2020):
Nevermind! - All sorted, reconfigured my HAProxy backend to listen on port 8000.