Can docker compose set the number of processes for vaultwarden to start postgresql #104

Closed
opened 2025-07-08 08:40:04 -04:00 by AtHeartEngineer · 0 comments

Originally created by @cbingos on 4/27/2025

Vaultwarden Support String

Can docker compose set the number of processes for vaultwarden to start postgresql?
The default seems to be 10.

dock-compose.yml
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: always
extra_hosts:
- "host.docker.internal:172.17.0.1" # ip a show docker ip
environment:
- TZ=Asia/Shanghai
- SIGNUPS_ALLOWED=true
- INVITATIONS_ALLOWED=false
- LOG_FILE:log/vaultwarden.log
- LOG_LEVEL=warn
- ADMIN_TOKEN=Vaultrs2125@
- SHOW_PASSWORD_HINT=false
- WEBSOCKET_ENABLED=true
- DOMAIN=https://abc.posgrsql.com/abc/
- DATABASE_URL=postgresql://postgres:postgresql@172.17.0.1:5432/vaultrs
volumes:
- ./data/:/data/
ports:
- 127.0.0.1:22222:80
- 127.0.0.1:3012:3012

bash
sudo ps aux | grep postgres
postgres 4163392 0.0 1.5 225400 15476 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59764) idle
postgres 4163393 0.0 1.5 225400 15476 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59778) idle
postgres 4163394 0.0 1.5 225404 15476 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59794) idle
postgres 4163395 0.0 1.5 225404 15472 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59808) idle
postgres 4163396 0.0 1.5 225404 15468 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59824) idle
postgres 4163397 0.0 1.5 225404 15472 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59826) idle
postgres 4163398 0.0 1.5 225404 15476 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59840) idle
postgres 4163399 0.0 1.5 225404 15468 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(57716) idle
postgres 4163400 0.0 1.5 225400 15476 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(57724) idle
postgres 4163401 0.0 1.7 225528 17532 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(57726) idle

Vaultwarden Build Version

latest

Deployment method

Official Container Image

Custom deployment method

No response

Reverse Proxy

nginx

Host/Server Operating System

Linux

Operating System Version

debian

Clients

Web Vault

Client Version

No response

Steps To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. Click on '...'
  5. Etc '...'

Expected Result

Customize the number of connections of postgresql

Actual Result

Customize the number of connections of postgresql

Logs


Screenshots or Videos

No response

Additional Context

No response

*Originally created by @cbingos on 4/27/2025* ### Vaultwarden Support String Can docker compose set the number of processes for vaultwarden to start postgresql? The default seems to be 10. > dock-compose.yml services: vaultwarden: image: vaultwarden/server:latest container_name: vaultwarden restart: always extra_hosts: - "host.docker.internal:172.17.0.1" # ip a show docker ip environment: - TZ=Asia/Shanghai - SIGNUPS_ALLOWED=true - INVITATIONS_ALLOWED=false - LOG_FILE:log/vaultwarden.log - LOG_LEVEL=warn - ADMIN_TOKEN=Vaultrs2125@ - SHOW_PASSWORD_HINT=false - WEBSOCKET_ENABLED=true - DOMAIN=https://abc.posgrsql.com/abc/ - DATABASE_URL=postgresql://postgres:postgresql@172.17.0.1:5432/vaultrs volumes: - ./data/:/data/ ports: - 127.0.0.1:22222:80 - 127.0.0.1:3012:3012 > bash sudo ps aux | grep postgres postgres 4163392 0.0 1.5 225400 15476 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59764) idle postgres 4163393 0.0 1.5 225400 15476 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59778) idle postgres 4163394 0.0 1.5 225404 15476 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59794) idle postgres 4163395 0.0 1.5 225404 15472 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59808) idle postgres 4163396 0.0 1.5 225404 15468 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59824) idle postgres 4163397 0.0 1.5 225404 15472 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59826) idle postgres 4163398 0.0 1.5 225404 15476 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(59840) idle postgres 4163399 0.0 1.5 225404 15468 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(57716) idle postgres 4163400 0.0 1.5 225400 15476 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(57724) idle postgres 4163401 0.0 1.7 225528 17532 ? Ss 15:10 0:00 postgres: 15/main: postgres vaultrs 172.19.0.2(57726) idle ### Vaultwarden Build Version latest ### Deployment method Official Container Image ### Custom deployment method _No response_ ### Reverse Proxy nginx ### Host/Server Operating System Linux ### Operating System Version debian ### Clients Web Vault ### Client Version _No response_ ### Steps To Reproduce 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. Click on '...' 5. Etc '...' ### Expected Result Customize the number of connections of postgresql ### Actual Result Customize the number of connections of postgresql ### Logs ```text ``` ### Screenshots or Videos _No response_ ### Additional Context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#104