Commit 39872f11 authored by hengwen's avatar hengwen

Basic compose config for development of this project

parent 6fd2641f
version: "3"
services:
zoo1:
image: zookeeper
restart: always
hostname: zoo1
# ports:
# - 2181:2181
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=0.0.0.0:2888:3888
rmi-server:
image: rmi-server:latest
depends_on:
- zoo1
ports:
- 10101:10101
restart: always
environment:
ZOO_SERVERS: zoo1:2181
simulator-rpc:
image: rpc-server:dev
depends_on:
- zoo1
ports:
# - 6000:6000
- 8787:8787
restart: always
environment:
ZOO_SERVERS: zoo1:2181
volumes:
- ../rpc/target/rpc-1.0.0-SNAPSHOT-jar-with-dependencies.jar:/app/simulator-rpc.jar
restful-server:
image: restful-server:dev
depends_on:
- zoo1
- simulator-rpc
- rmi-server
ports:
- 8080:8080
# - 8787:8787
restart: always
environment:
ZOO_SERVERS: zoo1:2181
volumes:
- ../restful/target/restful-1.0.0-SNAPSHOT.jar:/app/app.jar
- ../restful/target/classes/app.db:/app/app.db
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment