Sign inSign up

antalbuss/unison-server

By antalbuss

Updated 8 months ago

A lightweight Docker container running Unison v2.53.8 file synchronization server on Ubuntu 22.04.

Image
0

361

antalbuss/unison-server repository overview

Unison File Synchronization Server A lightweight Docker container running Unison v2.53.8 file synchronization server on Ubuntu 22.04. Features

  • ✅ Pre-configured Unison server running on port 5000
  • ✅ Runs as non-root user for security
  • ✅ Configurable UID/GID for host volume compatibility
  • ✅ Automatic user/group creation on startup
  • ✅ Minimal Ubuntu 22.04 base image
  • ✅ Static binary for reliability

Environment Variables

VariableDefaultDescription
UNISON_USERunisonUsername for running unison
UNISON_GROUPunisonGroup name
UNISON_UID1000User ID (match host UID for permissions)
UNISON_GID1000Group ID (match host GID for permissions)
UNISON_DIR/dataSync directory path

Quick Start

Run with defaults

docker run -d -p 5000:5000 -v /path/to/data:/data antalbuss/unison-server

Run with custom UID/GID (match your host user)

docker run -d \
  -p 5000:5000 \
  -e UNISON_UID=1000 \
  -e UNISON_GID=1000 \
  -v /path/to/data:/data \
  antalbuss/unison-server

Docker Compose Example

version: '3'
services:
  unison:
    image: antalbuss/unison-server:2.53.8
    ports:
      - "5000:5000"
    environment:
      - UNISON_UID=1000
      - UNISON_GID=1000
    volumes:
      - ./sync-data:/data

Usage Connect from a client using: unison /local/path socket://host:5000//data -auto -batch

Ports

  • 5000/tcp - Unison socket server

Tag summary

Content type

Image

Digest

sha256:001327695

Size

32.9 MB

Last updated

8 months ago

docker pull antalbuss/unison-server