Skip to content

About

Dockerized PostgreSQL server for DaVinci Resolve. Includes automatic backups and a fix for the Synology port 5432 conflict.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DaVinci Resolve Project Server β€” Docker


DaVinci Resolve Docker PostgreSQL 13 License: MIT


DaVinci Resolve running against a Dockerized PostgreSQL server

A Dockerized PostgreSQL server for sharing DaVinci Resolve projects across multiple workstations.
Works on Linux, macOS, Windows, Synology, QNAP, Unraid, Raspberry Pi β€” anywhere Docker runs.


πŸ‡ͺπŸ‡Έ VersiΓ³n en espaΓ±ol disponible aquΓ­


Why this repo?

The Synology problem: DSM's internal PostgreSQL occupies 127.0.0.1:5432. Binding a container to 0.0.0.0:5432 fails. DaVinci Resolve doesn't allow custom ports in its UI, so 5433 is not an option. This repo solves that with a single-line fix β€” read more.

If you're not on Synology, this is still the simplest way to run a Resolve project server on any Docker host.

Features

  • 🎬 PostgreSQL 13 β€” recommended by Blackmagic for Resolve 18–21
  • πŸ’Ύ Automatic backups β€” daily copies with configurable rotation (days, weeks, months)
  • 🐳 Cross-platform β€” any system with Docker
  • πŸ”§ Synology-compatible β€” resolves the port 5432 conflict with DSM's internal PostgreSQL
  • 🌐 VPN-ready β€” works remotely over WireGuard, Tailscale, OpenVPN, etc.
  • ⚑ Healthcheck-aware β€” backups wait for Postgres to be fully ready before starting
  • πŸ” Credentials via .env β€” never hardcoded, never committed to Git

Requirements

  • Docker and Docker Compose installed on the host system
  • DaVinci Resolve 18, 19, 20, or 21 (Studio or Free)
  • Workstations on the same local network, or connected via VPN

Project structure

davinci-resolve-server/
β”œβ”€β”€ docker-compose.yml        # Postgres + backup services
β”œβ”€β”€ .env                      # Your credentials (git-ignored)
β”œβ”€β”€ .env.example              # Credentials template
β”œβ”€β”€ init/
β”‚   └── init.sql              # Grants CREATEDB to the postgres user
β”œβ”€β”€ docs/
β”‚   └── server.png            # Screenshot
β”œβ”€β”€ data/                     # PostgreSQL data volume (auto-created, git-ignored)
β”œβ”€β”€ backups/                  # Automatic backups (auto-created, git-ignored)
└── README.md

Installation

1. Clone the repository

git clone https://github.com/YOUR_USER/davinci-resolve-server.git
cd davinci-resolve-server

2. Configure credentials

cp .env.example .env

Edit .env:

POSTGRES_USER=postgres
POSTGRES_PASSWORD=DaVinci
POSTGRES_DB=resolve

DaVinci is the default password in Blackmagic's documentation. You can change it, but you'll need to re-enter it on each workstation.

3. Start the server

docker compose up -d

Verify both containers are running:

docker ps | grep davinci

You should see davinci-postgres and davinci-pgbackup.

4. Connect from DaVinci Resolve

On each workstation, open DaVinci Resolve:

  1. Welcome screen β†’ Add Project Library
  2. Select Create (first workstation) or Connect (all others)
  3. Fill in:
    Field Value
    Name Anything (e.g. MyServer)
    Location Server IP (e.g. 192.168.1.10)
    Username postgres
    Password DaVinci
  4. Click Create

First workstation uses Create. All others use Connect.
DaVinci needs to create the database structure once β€” subsequent connections just join it.


Platform-specific notes

Linux / macOS / Windows

Check that port 5432 is free, then start normally:

# Linux / macOS
sudo netstat -tlnp | grep 5432

# Windows (PowerShell)
netstat -an | findstr 5432

# Start
docker compose up -d

Synology NAS

Port conflict with DSM? See the dedicated section below.

QNAP NAS

  1. Container Station β†’ Create β†’ Create Application
  2. Paste docker-compose.yml contents
  3. Set volume paths to folders on your QNAP
  4. Validate YAML and create

Unraid

  1. Copy the project folder to your Unraid
  2. docker compose up -d from the terminal
  3. Adjust volume paths to match your shares

Synology: port 5432 conflict

The problem

DSM runs its own PostgreSQL (for Synology Photos, Drive, etc.) on port 5432. Binding a container to 0.0.0.0:5432 fails:

Error: listen tcp4 0.0.0.0:5432: bind: address already in use

DaVinci Resolve does not allow specifying a custom port in its connection UI β€” so 5433 is not a workaround.

The solution

DSM's PostgreSQL listens only on 127.0.0.1 (localhost). We can bind our container to the LAN IP of the NAS instead, and both coexist on the same port without touching each other.

Edit the ports line in docker-compose.yml:

ports:
  - "192.168.1.91:5432:5432"   # Your Synology's LAN IP β€” not 0.0.0.0

Replace 192.168.1.91 with your actual Synology IP (check DSM β†’ Control Panel β†’ Network).

Result:

Address Who uses it
127.0.0.1:5432 DSM's PostgreSQL β€” untouched
192.168.1.91:5432 DaVinci's container β€” your server

No collisions. No stopped DSM services. Synology Photos and Drive keep working normally.

Check if your Synology has this conflict

sudo netstat -tlnp | grep 5432
  • 127.0.0.1:5432 β†’ this fix works for you βœ…
  • 0.0.0.0:5432 β†’ something else is using the port, investigate further

Recommended folder on Synology

mkdir -p /volume1/docker/davinci-resolve-server
cd /volume1/docker/davinci-resolve-server

PostgreSQL version compatibility

DaVinci Resolve Recommended PostgreSQL
12.5.4 – 17 9.5 (EOL) or 11
18 – 21 13 ← this repo

For Resolve 17 or earlier, change both images in docker-compose.yml:

# postgres service
image: postgres:11

# pgbackups service
image: prodrigestivill/postgres-backup-local:11

Backups

Backups are saved automatically in backups/ with this rotation:

Type Default retention
Daily 7 days
Weekly 4 weeks
Monthly 6 months

Adjust in docker-compose.yml:

SCHEDULE: "@daily"       # "@hourly", "@daily", "@weekly", "@every 6h"
BACKUP_KEEP_DAYS: 7
BACKUP_KEEP_WEEKS: 4
BACKUP_KEEP_MONTHS: 6

To restore: DaVinci Resolve β†’ Project Manager β†’ Import project.


Remote access

Never expose port 5432 to the internet. Use a VPN instead:

VPN Notes
Tailscale Easiest β€” client for almost every platform
WireGuard Lightest β€” built into most modern NAS and routers
OpenVPN Classic β€” available on most NAS devices

With VPN active, your remote machine sees the LAN as if it were local.


Useful commands

# List databases created by DaVinci
docker exec -it davinci-postgres psql -U postgres -l

# View running containers
docker ps | grep davinci

# Server logs
docker logs davinci-postgres

# Backup service logs
docker logs davinci-pgbackup

# Restart
docker compose restart

# Stop
docker compose down

# Start
docker compose up -d

Troubleshooting

"Cannot connect to the network project library"
  1. Container running? docker ps | grep davinci
  2. Any errors? docker logs davinci-postgres
  3. Firewall allows port 5432 from your LAN?
  4. First connection must use Create, not Connect
"could not translate host name"

You're entering the port in the Location field (e.g. 192.168.1.91:5432). DaVinci only accepts a bare IP there β€” no port. Make sure the container is mapped to port 5432 and enter only the IP.

"address already in use" on startup

Port 5432 is occupied.

  • Synology β†’ use the IP-specific binding described above
  • Other systems β†’ find what's using it: netstat -tlnp | grep 5432, stop it if safe
Container starts but DaVinci won't connect

Verify PostgreSQL accepts remote connections:

docker exec -it davinci-postgres bash
grep listen_addresses /var/lib/postgresql/data/postgresql.conf
cat /var/lib/postgresql/data/pg_hba.conf | grep -v "^#" | grep -v "^$"

listen_addresses must be '*' and pg_hba.conf must contain host all all 0.0.0.0/0 md5.
Both are correct by default with postgres:13 in Docker.


Credits

License

MIT

About

Dockerized PostgreSQL server for DaVinci Resolve. Includes automatic backups and a fix for the Synology port 5432 conflict.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors