dev.yml 1.65 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.
#

8 9 10 11
version: "3"

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

  rmi-server:
hengwen's avatar
hengwen committed
20 21 22 23 24 25
    image: registry.git.rwth-aachen.de/monticore/embeddedmontiarc/simulators/rmimodelserver:latest
    depends_on:
      - zoo1
    restart: always
    environment:
      ZOO_SERVERS: zoo1:2181
hengwen's avatar
hengwen committed
26
    entrypoint:
hengwen's avatar
hengwen committed
27 28
      - bash
      - -c
hengwen's avatar
hengwen committed
29
      - "source ~/.bashrc && java -Djava.rmi.server.useLocalHostname -jar rmi-model-server.jar port=10101 autopilots_folder=autopilots no_time os=windows"
hengwen's avatar
hengwen committed
30 31 32

  rpc-server:
    image: rpc-server
33 34 35 36 37
    depends_on:
      - zoo1
    restart: always
    environment:
      ZOO_SERVERS: zoo1:2181
38 39 40
      # enable multi-sector trajectory re-planning
      SIM_SERVER: server
      SIM_PORT: 8090
41

hengwen's avatar
hengwen committed
42 43
  server:
    image: restful-server:latest
44 45 46
    depends_on:
      - zoo1
    ports:
hengwen's avatar
hengwen committed
47
      - 8787:8787
hengwen's avatar
hengwen committed
48
#      - 8090:8090
49 50 51
    restart: always
    environment:
      ZOO_SERVERS: zoo1:2181
hengwen's avatar
hengwen committed
52 53 54 55 56 57
    volumes:
      - ./target:/app
    entrypoint:
      - java
      - -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8787
      - -jar
hengwen's avatar
hengwen committed
58 59
#       make sure the jar exists in target directory
      - restful.jar
60 61 62 63 64 65 66 67 68 69 70

  nginx:
    image: nginx:1.17
    ports:
      - 8090:8090
    restart: always
    depends_on:
      - server
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
      # replace the path blow to adapt to your path to visualization files
hengwen's avatar
hengwen committed
71
      - /path/to/visualization/src/main/webapp:/app