From 78df849976bdbb6383ca2479d1cde17d2599358c Mon Sep 17 00:00:00 2001 From: mr-vercetti <87.milewski@gmail.com> Date: Wed, 9 Feb 2022 17:54:58 +0000 Subject: [PATCH] Fix bitwarden so it doesn't run as root --- docker/stacks/bitwarden/bitwarden.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/stacks/bitwarden/bitwarden.yml b/docker/stacks/bitwarden/bitwarden.yml index e4d0d1b..3cca903 100644 --- a/docker/stacks/bitwarden/bitwarden.yml +++ b/docker/stacks/bitwarden/bitwarden.yml @@ -2,22 +2,22 @@ services: bitwarden: image: vaultwarden/server container_name: bitwarden + user: ${PUID}:${PGID} networks: - bitwarden - proxy environment: - - PUID=${PUID} - - PGID=${PGID} - TZ=${TIMEZONE} - DOMAIN=${BW_URL} - WEBSOCKET_ENABLED=true - SIGNUPS_ALLOWED=false - ADMIN_TOKEN=${BW_ADMIN_TOKEN} - LOG_FILE=/data/log/bitwarden.log + - ROCKET_PORT=8080 volumes: - ${APPS_DIR}/bitwarden:/data ports: - - 8080:80 + - 8080:8080 restart: unless-stopped networks: