docker-compose.yml 1.59 KB
Newer Older
Jean Meurice's avatar
Jean Meurice committed
1 2 3 4 5 6 7
#
# (c) https://github.com/MontiCore/monticore
#
# The license generally applicable for this project
# can be found under https://github.com/MontiCore/monticore.
#

ham's avatar
ham committed
8 9 10
version: "3"

services:
hengwen's avatar
hengwen committed
11
  zoo1:
hengwen's avatar
hengwen committed
12
    image: zookeeper:3.4
hengwen's avatar
hengwen committed
13 14 15 16 17 18
    restart: always
    hostname: zoo1
    environment:
      ZOO_MY_ID: 1
      ZOO_SERVERS: server.1=0.0.0.0:2888:3888

ham's avatar
ham committed
19
  rmi-server:
hengwen's avatar
hengwen committed
20
    image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/simulators/rmimodelserver:latest
hengwen's avatar
hengwen committed
21 22 23 24
    depends_on:
      - zoo1
    restart: always
    environment:
hengwen's avatar
hengwen committed
25 26 27 28 29 30 31 32 33 34 35 36
      ZOO_SERVERS: zoo1:2181
    entrypoint:
      - java
      - -cp
      - rmi-model-server.jar
      - -Djava.rmi.server.codebase=file:rmi-model-server.jar
      - -Djava.rmi.server.useLocalHostname
      - rwth.rmi.model.server.RMIServer
      - "10101"
      - autopilots
      - no_time
      - os=linux
hengwen's avatar
hengwen committed
37

hengwen's avatar
hengwen committed
38
  rpc-server:
hengwen's avatar
hengwen committed
39
    image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/simulators/server:rpc
hengwen's avatar
hengwen committed
40 41 42
    depends_on:
      - zoo1
    restart: always
ham's avatar
ham committed
43
    environment:
hengwen's avatar
hengwen committed
44 45 46 47 48 49 50
      ZOO_SERVERS: zoo1:2181
      # uncomment below to enable multi-sector trajectory re-planning
  #      SIM_SERVER: server
  #      SIM_PORT: 8090

  server:
    image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/simulators/server:restful
hengwen's avatar
hengwen committed
51 52
    depends_on:
      - zoo1
hengwen's avatar
hengwen committed
53 54
    ports:
      - 8090:8090
hengwen's avatar
hengwen committed
55
    restart: always
ham's avatar
ham committed
56
    environment:
hengwen's avatar
hengwen committed
57
      ZOO_SERVERS: zoo1:2181
hengwen's avatar
hengwen committed
58 59 60 61 62 63 64 65 66 67

#  nginx:
#    image: nginx:1.17
#    ports:
#      - 8090:8090
#    restart: always
#    volumes:
#      - ./nginx.conf:/etc/nginx/nginx.conf:ro
#      # edit line below to use visualization
#      - /path/to/visualization/src/main/webapp:/app