github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/docker-compose.yml (about)

     1  rethinkdb:
     2      image: rethinkdb
     3      ports:
     4          - "8080"
     5          - "28015"
     6          - "29015"
     7  proxy:
     8      image: ehazlett/docker-proxy:latest
     9      command: -i
    10      volumes:
    11          - "/var/run/docker.sock:/var/run/docker.sock"
    12      ports:
    13          - "2375"
    14  
    15  swarm:
    16      image: swarm:latest
    17      command: m --host tcp://0.0.0.0:2375 proxy:2375
    18      links:
    19          - "proxy:proxy"
    20      ports:
    21          - "2375"
    22  
    23  media:
    24      build: .
    25      entrypoint: /bin/bash
    26      dockerfile: Dockerfile.build
    27      command: -c "make media && sleep infinity"
    28      working_dir: /go/src/github.com/shipyard/shipyard
    29      volumes:
    30          - "/go/src/github.com/shipyard/shipyard/controller/static"
    31  
    32  controller:
    33      build: .
    34      dockerfile: Dockerfile.build
    35      entrypoint: /bin/bash
    36      command: -c "make build && cd controller && ./controller -D server --rethinkdb-addr rethinkdb:28015 -d tcp://swarm:2375"
    37      links:
    38          - rethinkdb
    39          - swarm
    40      volumes_from:
    41          - media
    42      ports:
    43          - "8080:8080"