Sign inSign up

dvorakluk/unison

By dvorakluk

•Updated over 10 years ago

Minimal unison image

Image
2

1.2K

dvorakluk/unison repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

4.5 MB

Last updated

over 10 years ago

docker pull dvorakluk/unison