Fix bitwarden so it doesn't run as root

This commit is contained in:
mr-vercetti 2022-02-09 17:54:58 +00:00
parent f56294dff8
commit 78df849976

View File

@ -2,22 +2,22 @@ services:
bitwarden: bitwarden:
image: vaultwarden/server image: vaultwarden/server
container_name: bitwarden container_name: bitwarden
user: ${PUID}:${PGID}
networks: networks:
- bitwarden - bitwarden
- proxy - proxy
environment: environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE} - TZ=${TIMEZONE}
- DOMAIN=${BW_URL} - DOMAIN=${BW_URL}
- WEBSOCKET_ENABLED=true - WEBSOCKET_ENABLED=true
- SIGNUPS_ALLOWED=false - SIGNUPS_ALLOWED=false
- ADMIN_TOKEN=${BW_ADMIN_TOKEN} - ADMIN_TOKEN=${BW_ADMIN_TOKEN}
- LOG_FILE=/data/log/bitwarden.log - LOG_FILE=/data/log/bitwarden.log
- ROCKET_PORT=8080
volumes: volumes:
- ${APPS_DIR}/bitwarden:/data - ${APPS_DIR}/bitwarden:/data
ports: ports:
- 8080:80 - 8080:8080
restart: unless-stopped restart: unless-stopped
networks: networks: