Part-DB should be configured for component inventory traceability and controlled data editing rights.
PARTDB_DATABASE_URL=sqlite:///data/database.sqlite # Or mysql://user:pass@host:port/dbname
PARTDB_ATTACHMENTS_PATH=/attachments
PARTDB_BASE_URL=https://partdb.example.com
PARTDB_DEFAULT_LOCALE=en
PARTDB_SECRET=generate-a-secure-random-secret-here
For MySQL:
PARTDB_DATABASE_URL=mysql://partdb_user:strong_password@mysql:3306/partdb?charset=utf8mb4
For PostgreSQL:
PARTDB_DATABASE_URL=postgresql://partdb_user:strong_password@postgres:5432/partdb
MAILER_DSN=smtp://username:password@smtp.example.com:587
PARTDB_MAILER_FROM=noreply@partdb.example.com
PARTDB_SAML_ENABLED=true
PARTDB_SAML_IDP_ENTITY_ID=https://your-sso-provider.com
PARTDB_SAML_IDP_SSO_URL=https://your-sso-provider.com/sso
PARTDB_SAML_IDP_X509_CERTIFICATE="-----BEGIN CERTIFICATE-----..."
Part-DB supports multiple languages. Set the default locale using PARTDB_DEFAULT_LOCALE:
en - Englishde - Germanru - Russianja - Japanesefr - Frenchcs - Czechda - Danishzh - ChinesePart-DB supports multiple currencies with automatic exchange rate updates:
PARTDB_CURRENCY_BASE=USD
PARTDB_CURRENCY_ENABLED=EUR,GBP,CNY
Configure barcode scanning and generation:
PARTDB_BARCODE_ENABLED=true
PARTDB_BARCODE_FORMAT=CODE128
Back up the following components:
PARTDB_ATTACHMENTS_PATHValidate restore procedures with:
When deploying with Docker, use external secrets management for sensitive data:
version: '3.8'
services:
part-db:
image: ghcr.io/part-db/part-db:2.6.0
environment:
- PARTDB_SECRET_FILE=/run/secrets/partdb_secret
- PARTDB_DATABASE_PASSWORD_FILE=/run/secrets/db_password
secrets:
- partdb_secret
- db_password
secrets:
partdb_secret:
file: ./secrets/partdb_secret.txt
db_password:
file: ./secrets/db_password.txt
When using a reverse proxy (nginx, Apache), ensure proper headers:
X-Forwarded-Proto: https
X-Forwarded-Host: your-domain.com
X-Forwarded-Port: 443
Feel free to contact us. Find all contact information on our contact page.