[GH-ISSUE #680] Changing the image #458

Closed
opened 2026-03-03 01:29:20 +03:00 by kerem · 3 comments
Owner

Originally created by @ITHanke on GitHub (Oct 22, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/680

Hi Guys,

I need some help with the docker image. Some options i want is to have:

  • Disable registration of new users
  • Enabling YubiKey OTP authentication

But where and when i put these command? At getting the docker file? Or in the bash of the docker image what is running?

Originally created by @ITHanke on GitHub (Oct 22, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/680 Hi Guys, I need some help with the docker image. Some options i want is to have: - Disable registration of new users - Enabling YubiKey OTP authentication But where and when i put these command? At getting the docker file? Or in the bash of the docker image what is running?
kerem closed this issue 2026-03-03 01:29:20 +03:00
Author
Owner

@fbartels commented on GitHub (Oct 22, 2019):

A lot of the configuration is done through environment variables. The available options are documented at https://github.com/dani-garcia/bitwarden_rs/blob/master/.env.template

<!-- gh-comment-id:545117271 --> @fbartels commented on GitHub (Oct 22, 2019): A lot of the configuration is done through environment variables. The available options are documented at https://github.com/dani-garcia/bitwarden_rs/blob/master/.env.template
Author
Owner

@Brice187 commented on GitHub (Oct 22, 2019):

Or you can use docker-compose.yml to set environment vars:

version: '2'

services:
  bitwarden:
    image: bitwardenrs/server:latest
    restart: always
    environment:
      - SIGNUPS_ALLOWED=false
      - ADMIN_TOKEN=PLEASEUSEASTRONGTOKEN
      - DOMAIN=https://passwords.example.com
    volumes:
      - ./data/:/data/
    networks:
      frontend:
    labels:
      - "traefik.backend=bitwarden"
      - "traefik.docker.network=traefik_frontend"
      - "traefik.enable=true"
      - "traefik.port=80"
      - "traefik.frontend.rule=Host:passwords.example.com"
      - "traefik.frontend.headers.contentSecurityPolicy=default-src 'self'; script-src 'self'; style-src 'self' ; object-src 'none'; frame-ancestors 'self'; form-action 'none'; base-uri 'self'"

networks:
  frontend:
    external:
      name: traefik_frontend
<!-- gh-comment-id:545175090 --> @Brice187 commented on GitHub (Oct 22, 2019): Or you can use docker-compose.yml to set environment vars: ``` version: '2' services: bitwarden: image: bitwardenrs/server:latest restart: always environment: - SIGNUPS_ALLOWED=false - ADMIN_TOKEN=PLEASEUSEASTRONGTOKEN - DOMAIN=https://passwords.example.com volumes: - ./data/:/data/ networks: frontend: labels: - "traefik.backend=bitwarden" - "traefik.docker.network=traefik_frontend" - "traefik.enable=true" - "traefik.port=80" - "traefik.frontend.rule=Host:passwords.example.com" - "traefik.frontend.headers.contentSecurityPolicy=default-src 'self'; script-src 'self'; style-src 'self' ; object-src 'none'; frame-ancestors 'self'; form-action 'none'; base-uri 'self'" networks: frontend: external: name: traefik_frontend ```
Author
Owner

@mprasil commented on GitHub (Nov 15, 2019):

I think this was answered, so closing the issue, but feel free to reopen if you need more help.

<!-- gh-comment-id:554401600 --> @mprasil commented on GitHub (Nov 15, 2019): I think this was answered, so closing the issue, but feel free to reopen if you need more help.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#458
No description provided.