docker-compose.yml 780 Bytes
Newer Older
ham's avatar
ham committed
1 2 3
version: "3"

services:
hengwen's avatar
hengwen committed
4 5 6 7
  zoo1:
    image: zookeeper
    restart: always
    hostname: zoo1
ham's avatar
ham committed
8
    ports:
hengwen's avatar
hengwen committed
9 10 11 12 13
      - 2181:2181
    environment:
      ZOO_MY_ID: 1
      ZOO_SERVERS: server.1=0.0.0.0:2888:3888

hengwen's avatar
hengwen committed
14 15 16 17 18 19 20 21 22 23
  web:
    image: montisim-server
    ports:
      - 5001:5001
    depends_on:
      - rmi-server
      - rpc-server
    volumes:
      - ../research/web:/app

ham's avatar
ham committed
24 25
  rmi-server:
    image: rmi-server:latest
hengwen's avatar
hengwen committed
26 27 28 29 30 31 32 33 34
    depends_on:
      - zoo1
#    ports:
#      - 10101:10101
    restart: always
#    hostname: rmi-server
    environment:
      ZOO_SERVERS: zoo1

hengwen's avatar
hengwen committed
35
  rpc-server:
hengwen's avatar
hengwen committed
36 37 38
    image: rpc-server:latest
    depends_on:
      - zoo1
hengwen's avatar
hengwen committed
39 40
#    ports:
#      - 6000:6000
hengwen's avatar
hengwen committed
41 42
#      - 8787:8787
    restart: always
ham's avatar
ham committed
43
    environment:
hengwen's avatar
hengwen committed
44 45 46
      ZOO_SERVERS: zoo1
    volumes:
      - ../rpc/target:/app