rng1:
    build: rng

rng2:
    build: rng

rng3:
    build: rng

rng0:
    image: jpetazzo/hamba
    links:
      - rng1
      - rng2
      - rng3
    command: 80 rng1 80 rng2 80 rng3 80
    ports:
      - "8001:80"

hasher:
    build: hasher
    ports:
      - "8002:80"

webui:
    build: webui
    extra_hosts:
      redis: A.B.C.D
    ports:
      - "8000:80"
    #volumes:
    #  - "./webui/files/:/files/"

#redis:
#    image: redis

worker:
    build: worker
    links:
      - rng0:rng
      - hasher:hasher
    extra_hosts:
      redis: A.B.C.D
