docker-compose.yml 1.08 KB
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 14 15
      - 2181:2181
    environment:
      ZOO_MY_ID: 1
      ZOO_SERVERS: server.1=0.0.0.0:2888:3888

  kafka:
    image: wurstmeister/kafka
ham's avatar
ham committed
16
    depends_on:
hengwen's avatar
hengwen committed
17 18 19 20 21 22
      - zoo1
    ports:
      - 9092:9092
    environment:
      KAFKA_ADVERTISED_HOST_NAME: kafka
      KAFKA_ZOOKEEPER_CONNECT: zoo1:2181
ham's avatar
ham committed
23
    restart: always
hengwen's avatar
hengwen committed
24 25
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
ham's avatar
ham committed
26

hengwen's avatar
hengwen committed
27 28 29 30 31 32 33 34 35 36
  web:
    image: montisim-server
    ports:
      - 5001:5001
    depends_on:
      - rmi-server
      - rpc-server
    volumes:
      - ../research/web:/app

ham's avatar
ham committed
37 38
  rmi-server:
    image: rmi-server:latest
hengwen's avatar
hengwen committed
39 40 41 42 43 44 45 46 47
    depends_on:
      - zoo1
#    ports:
#      - 10101:10101
    restart: always
#    hostname: rmi-server
    environment:
      ZOO_SERVERS: zoo1

hengwen's avatar
hengwen committed
48
  rpc-server:
hengwen's avatar
hengwen committed
49 50 51 52
    image: rpc-server:latest
    depends_on:
      - kafka
      - zoo1
hengwen's avatar
hengwen committed
53 54
#    ports:
#      - 6000:6000
hengwen's avatar
hengwen committed
55 56
#      - 8787:8787
    restart: always
ham's avatar
ham committed
57
    environment:
hengwen's avatar
hengwen committed
58 59 60 61 62
      ZOO_SERVERS: zoo1
      KAFKA_SERVERS: kafka:9092
    volumes:
      - ../rpc/target:/app