Public Repository

Last pushed: 2 years ago
Short Description
Minimal unison image
Full Description

Usage:

This image contains minimal unison install created primarily for developement
Only exposed port is with unison --socket 5000

WORKDIR is set to /sync, but can be overriden

Two environment variables are set for creating files on the docker side:

  • WORKUID
  • WORKGID
docker-compose up

Easiest way to start is with docker-compose

nginx:
  image: "nginx:1.9.9"
  ports:
    - "80:80"
  volumes_from:
    - unison
unison:
  image: "dvorakluk/unison:2.48.3"
  environment:
    WORKUID: 33
    WORKGID: 33
  ports:
    - "5123:5000" # first is the socket port you are connecting to with unison
  volumes:
    - /usr/share/nginx/html
  working_dir: /usr/share/nginx/html # synced folder
then start unison sync

unison . socket://<docker_host_ip>:5123/ -auto -repeat watch

Docker Pull Command
Owner
dvorakluk

Comments (0)