fixes
This commit is contained in:
parent
2d91ef6330
commit
6391b007eb
|
@ -26,184 +26,184 @@ services:
|
||||||
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
|
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
|
||||||
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
||||||
|
|
||||||
tapas-db:
|
tapas-db:
|
||||||
image: mongo
|
image: mongo
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: tapas_mongodb
|
container_name: tapas_mongodb
|
||||||
environment:
|
environment:
|
||||||
MONGO_INITDB_ROOT_USERNAME: root
|
MONGO_INITDB_ROOT_USERNAME: root
|
||||||
MONGO_INITDB_ROOT_PASSWORD: password
|
MONGO_INITDB_ROOT_PASSWORD: password
|
||||||
ports:
|
ports:
|
||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
command: mongod --quiet --logpath /dev/null
|
command: mongod --quiet --logpath /dev/null
|
||||||
|
|
||||||
tapas-tasks:
|
tapas-tasks:
|
||||||
image: openjdk
|
image: openjdk
|
||||||
command: "java -jar /data/tapas-tasks-0.0.1-SNAPSHOT.jar"
|
command: "java -jar /data/tapas-tasks-0.0.1-SNAPSHOT.jar"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- tapas-db
|
- tapas-db
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/data/
|
- ./:/data/
|
||||||
environment:
|
environment:
|
||||||
roster.uri: http://roster:8082
|
roster.uri: http://roster:8082
|
||||||
spring.data.mongodb.uri: mongodb://root:password@tapas-db:27017
|
spring.data.mongodb.uri: mongodb://root:password@tapas-db:27017
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.tapas-tasks.rule=Host(`tapas-tasks.${PUB_IP}.nip.io`)"
|
- "traefik.http.routers.tapas-tasks.rule=Host(`tapas-tasks.${PUB_IP}.nip.io`)"
|
||||||
- "traefik.http.routers.tapas-tasks.service=tapas-tasks"
|
- "traefik.http.routers.tapas-tasks.service=tapas-tasks"
|
||||||
- "traefik.http.services.tapas-tasks.loadbalancer.server.port=8081"
|
- "traefik.http.services.tapas-tasks.loadbalancer.server.port=8081"
|
||||||
- "traefik.http.routers.tapas-tasks.tls=true"
|
- "traefik.http.routers.tapas-tasks.tls=true"
|
||||||
- "traefik.http.routers.tapas-tasks.entryPoints=web,websecure"
|
- "traefik.http.routers.tapas-tasks.entryPoints=web,websecure"
|
||||||
- "traefik.http.routers.tapas-tasks.tls.certresolver=le"
|
- "traefik.http.routers.tapas-tasks.tls.certresolver=le"
|
||||||
|
|
||||||
tapas-auction-house:
|
tapas-auction-house:
|
||||||
image: openjdk
|
image: openjdk
|
||||||
command: "java -jar /data/tapas-auction-house-0.0.1-SNAPSHOT.jar"
|
command: "java -jar /data/tapas-auction-house-0.0.1-SNAPSHOT.jar"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- tapas-db
|
- tapas-db
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/data/
|
- ./:/data/
|
||||||
environment:
|
environment:
|
||||||
mqtt.broker.uri: tcp://broker.hivemq.com:1883
|
mqtt.broker.uri: tcp://broker.hivemq.com:1883
|
||||||
discovery.endpoint.uri: https://tapas-auction-house.86.119.35.213.nip.io/discovery/
|
discovery.endpoint.uri: http://tapas-auction-house.86-119-34-242.nip.io/
|
||||||
auction.house.uri: https://tapas-auction-house.86-119-35-40.nip.io
|
auction.house.uri: https://tapas-auction-house.86-119-35-40.nip.io
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.tapas-auction-house.rule=Host(`tapas-auction-house.${PUB_IP}.nip.io`)"
|
- "traefik.http.routers.tapas-auction-house.rule=Host(`tapas-auction-house.${PUB_IP}.nip.io`)"
|
||||||
- "traefik.http.routers.tapas-auction-house.service=tapas-auction-house"
|
- "traefik.http.routers.tapas-auction-house.service=tapas-auction-house"
|
||||||
- "traefik.http.services.tapas-auction-house.loadbalancer.server.port=8086"
|
- "traefik.http.services.tapas-auction-house.loadbalancer.server.port=8086"
|
||||||
- "traefik.http.routers.tapas-auction-house.tls=true"
|
- "traefik.http.routers.tapas-auction-house.tls=true"
|
||||||
- "traefik.http.routers.tapas-auction-house.entryPoints=web,websecure"
|
- "traefik.http.routers.tapas-auction-house.entryPoints=web,websecure"
|
||||||
- "traefik.http.routers.tapas-auction-house.tls.certresolver=le"
|
- "traefik.http.routers.tapas-auction-house.tls.certresolver=le"
|
||||||
|
|
||||||
roster:
|
roster:
|
||||||
image: openjdk
|
image: openjdk
|
||||||
command: "java -jar /data/roster-0.0.1-SNAPSHOT.jar"
|
command: "java -jar /data/roster-0.0.1-SNAPSHOT.jar"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- tapas-db
|
- tapas-db
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/data/
|
- ./:/data/
|
||||||
environment:
|
environment:
|
||||||
task.list.uri: http://tapas-tasks:8081
|
task.list.uri: http://tapas-tasks:8081
|
||||||
auction.house.uri: http://tapas-auction-house:8086
|
auction.house.uri: http://tapas-auction-house:8086
|
||||||
executor.robot.uri: http://executor-robot:8084
|
executor.robot.uri: http://executor-robot:8084
|
||||||
executor.computation.uri: http://executor-computation:8085
|
executor.computation.uri: http://executor-computation:8085
|
||||||
executor.humidity.uri: http://executor-humidity:8087
|
executor.humidity.uri: http://executor-humidity:8087
|
||||||
mqtt.broker.uri: tcp://broker.hivemq.com:1883
|
mqtt.broker.uri: tcp://broker.hivemq.com:1883
|
||||||
spring.data.mongodb.uri: mongodb://root:password@tapas-db:27017
|
spring.data.mongodb.uri: mongodb://root:password@tapas-db:27017
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.roster.rule=Host(`roster.${PUB_IP}.nip.io`)"
|
- "traefik.http.routers.roster.rule=Host(`roster.${PUB_IP}.nip.io`)"
|
||||||
- "traefik.http.routers.roster.service=roster"
|
- "traefik.http.routers.roster.service=roster"
|
||||||
- "traefik.http.services.roster.loadbalancer.server.port=8082"
|
- "traefik.http.services.roster.loadbalancer.server.port=8082"
|
||||||
- "traefik.http.routers.roster.tls=true"
|
- "traefik.http.routers.roster.tls=true"
|
||||||
- "traefik.http.routers.roster.entryPoints=web,websecure"
|
- "traefik.http.routers.roster.entryPoints=web,websecure"
|
||||||
- "traefik.http.routers.roster.tls.certresolver=le"
|
- "traefik.http.routers.roster.tls.certresolver=le"
|
||||||
|
|
||||||
executor-pool:
|
executor-pool:
|
||||||
image: openjdk
|
image: openjdk
|
||||||
command: "java -jar /data/executor-pool-0.0.1-SNAPSHOT.jar"
|
command: "java -jar /data/executor-pool-0.0.1-SNAPSHOT.jar"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- tapas-db
|
- tapas-db
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/data/
|
- ./:/data/
|
||||||
environment:
|
environment:
|
||||||
mqtt.broker.uri: tcp://broker.hivemq.com:1883
|
mqtt.broker.uri: tcp://broker.hivemq.com:1883
|
||||||
spring.data.mongodb.uri: mongodb://root:password@tapas-db:27017
|
spring.data.mongodb.uri: mongodb://root:password@tapas-db:27017
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.executor-pool.rule=Host(`executor-pool.${PUB_IP}.nip.io`)"
|
- "traefik.http.routers.executor-pool.rule=Host(`executor-pool.${PUB_IP}.nip.io`)"
|
||||||
- "traefik.http.routers.executor-pool.service=executor-pool"
|
- "traefik.http.routers.executor-pool.service=executor-pool"
|
||||||
- "traefik.http.services.executor-pool.loadbalancer.server.port=8083"
|
- "traefik.http.services.executor-pool.loadbalancer.server.port=8083"
|
||||||
- "traefik.http.routers.executor-pool.tls=true"
|
- "traefik.http.routers.executor-pool.tls=true"
|
||||||
- "traefik.http.routers.executor-pool.entryPoints=web,websecure"
|
- "traefik.http.routers.executor-pool.entryPoints=web,websecure"
|
||||||
- "traefik.http.routers.executor-pool.tls.certresolver=le"
|
- "traefik.http.routers.executor-pool.tls.certresolver=le"
|
||||||
|
|
||||||
executor-computation:
|
executor-computation:
|
||||||
image: openjdk
|
image: openjdk
|
||||||
command: "java -jar /data/executor-computation-0.0.1-SNAPSHOT.jar"
|
command: "java -jar /data/executor-computation-0.0.1-SNAPSHOT.jar"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- executor-pool
|
- executor-pool
|
||||||
- roster
|
- roster
|
||||||
- tapas-db
|
- tapas-db
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/data/
|
- ./:/data/
|
||||||
environment:
|
environment:
|
||||||
EXECUTOR_POOL_URI: http://executor-pool:8083
|
EXECUTOR_POOL_URI: http://executor-pool:8083
|
||||||
ROSTER_URI: http://roster:8082
|
ROSTER_URI: http://roster:8082
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.executor-computation.rule=Host(`executor-computation.${PUB_IP}.nip.io`)"
|
- "traefik.http.routers.executor-computation.rule=Host(`executor-computation.${PUB_IP}.nip.io`)"
|
||||||
- "traefik.http.routers.executor-computation.service=executor-computation"
|
- "traefik.http.routers.executor-computation.service=executor-computation"
|
||||||
- "traefik.http.services.executor-computation.loadbalancer.server.port=8084"
|
- "traefik.http.services.executor-computation.loadbalancer.server.port=8084"
|
||||||
- "traefik.http.routers.executor-computation.tls=true"
|
- "traefik.http.routers.executor-computation.tls=true"
|
||||||
- "traefik.http.routers.executor-computation.entryPoints=web,websecure"
|
- "traefik.http.routers.executor-computation.entryPoints=web,websecure"
|
||||||
- "traefik.http.routers.executor-computation.tls.certresolver=le"
|
- "traefik.http.routers.executor-computation.tls.certresolver=le"
|
||||||
executor-robot:
|
executor-robot:
|
||||||
image: openjdk
|
image: openjdk
|
||||||
command: "java -jar /data/executor-robot-0.0.1-SNAPSHOT.jar"
|
command: "java -jar /data/executor-robot-0.0.1-SNAPSHOT.jar"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- executor-pool
|
- executor-pool
|
||||||
- roster
|
- roster
|
||||||
- tapas-db
|
- tapas-db
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/data/
|
- ./:/data/
|
||||||
environment:
|
environment:
|
||||||
EXECUTOR_POOL_URI: http://executor-pool:8083
|
EXECUTOR_POOL_URI: http://executor-pool:8083
|
||||||
ROSTER_URI: http://roster:8082
|
ROSTER_URI: http://roster:8082
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.executor-robot.rule=Host(`executor-robot.${PUB_IP}.nip.io`)"
|
- "traefik.http.routers.executor-robot.rule=Host(`executor-robot.${PUB_IP}.nip.io`)"
|
||||||
- "traefik.http.routers.executor-robot.service=executor-robot"
|
- "traefik.http.routers.executor-robot.service=executor-robot"
|
||||||
- "traefik.http.services.executor-robot.loadbalancer.server.port=8085"
|
- "traefik.http.services.executor-robot.loadbalancer.server.port=8085"
|
||||||
- "traefik.http.routers.executor-robot.tls=true"
|
- "traefik.http.routers.executor-robot.tls=true"
|
||||||
- "traefik.http.routers.executor-robot.entryPoints=web,websecure"
|
- "traefik.http.routers.executor-robot.entryPoints=web,websecure"
|
||||||
- "traefik.http.routers.executor-robot.tls.certresolver=le"
|
- "traefik.http.routers.executor-robot.tls.certresolver=le"
|
||||||
executor-humidity:
|
executor-humidity:
|
||||||
image: openjdk
|
image: openjdk
|
||||||
command: "java -jar /data/executor-humidity-0.0.1-SNAPSHOT.jar"
|
command: "java -jar /data/executor-humidity-0.0.1-SNAPSHOT.jar"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- executor-pool
|
- executor-pool
|
||||||
- roster
|
- roster
|
||||||
- tapas-db
|
- tapas-db
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/data/
|
- ./:/data/
|
||||||
environment:
|
environment:
|
||||||
EXECUTOR_POOL_URI: http://executor-pool:8083
|
EXECUTOR_POOL_URI: http://executor-pool:8083
|
||||||
ROSTER_URI: http://roster:8082
|
ROSTER_URI: http://roster:8082
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.executor-humidity.rule=Host(`executor-humidity.${PUB_IP}.nip.io`)"
|
- "traefik.http.routers.executor-humidity.rule=Host(`executor-humidity.${PUB_IP}.nip.io`)"
|
||||||
- "traefik.http.routers.executor-humidity.service=executor-humidity"
|
- "traefik.http.routers.executor-humidity.service=executor-humidity"
|
||||||
- "traefik.http.services.executor-humidity.loadbalancer.server.port=8087"
|
- "traefik.http.services.executor-humidity.loadbalancer.server.port=8087"
|
||||||
- "traefik.http.routers.executor-humidity.tls=true"
|
- "traefik.http.routers.executor-humidity.tls=true"
|
||||||
- "traefik.http.routers.executor-humidity.entryPoints=web,websecure"
|
- "traefik.http.routers.executor-humidity.entryPoints=web,websecure"
|
||||||
- "traefik.http.routers.executor-humidity.tls.certresolver=le"
|
- "traefik.http.routers.executor-humidity.tls.certresolver=le"
|
||||||
executor-humidity-demo:
|
executor-humidity-demo:
|
||||||
image: openjdk
|
image: openjdk
|
||||||
command: "java -jar /data/executor-humidity-demo-0.0.1-SNAPSHOT.jar"
|
command: "java -jar /data/executor-humidity-demo-0.0.1-SNAPSHOT.jar"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- executor-pool
|
- executor-pool
|
||||||
- roster
|
- roster
|
||||||
- tapas-db
|
- tapas-db
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/data/
|
- ./:/data/
|
||||||
environment:
|
environment:
|
||||||
EXECUTOR_POOL_URI: http://executor-pool:8083
|
EXECUTOR_POOL_URI: http://executor-pool:8083
|
||||||
ROSTER_URI: http://roster:8082
|
ROSTER_URI: http://roster:8082
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.executor-humidity-demo.rule=Host(`executor-humidity-demo.${PUB_IP}.nip.io`)"
|
- "traefik.http.routers.executor-humidity-demo.rule=Host(`executor-humidity-demo.${PUB_IP}.nip.io`)"
|
||||||
- "traefik.http.routers.executor-humidity-demo.service=executor-computation"
|
- "traefik.http.routers.executor-humidity-demo.service=executor-computation"
|
||||||
- "traefik.http.services.executor-humidity-demo.loadbalancer.server.port=8088"
|
- "traefik.http.services.executor-humidity-demo.loadbalancer.server.port=8088"
|
||||||
- "traefik.http.routers.executor-humidity-demo.tls=true"
|
- "traefik.http.routers.executor-humidity-demo.tls=true"
|
||||||
- "traefik.http.routers.executor-humidity-demo.entryPoints=web,websecure"
|
- "traefik.http.routers.executor-humidity-demo.entryPoints=web,websecure"
|
||||||
- "traefik.http.routers.executor-humidity-demo.tls.certresolver=le"
|
- "traefik.http.routers.executor-humidity-demo.tls.certresolver=le"
|
||||||
|
|
3
.github/workflows/build-and-deploy.yml
vendored
3
.github/workflows/build-and-deploy.yml
vendored
|
@ -111,5 +111,6 @@ jobs:
|
||||||
cd /home/${{ secrets.SSH_USER }}/
|
cd /home/${{ secrets.SSH_USER }}/
|
||||||
touch acme.json
|
touch acme.json
|
||||||
sudo chmod 0600 acme.json
|
sudo chmod 0600 acme.json
|
||||||
|
sudo docker-compose down --remove-orphans
|
||||||
sudo echo "PUB_IP=$(wget -qO- http://ipecho.net/plain | xargs echo)" | sed -e 's/\./-/g' > .env
|
sudo echo "PUB_IP=$(wget -qO- http://ipecho.net/plain | xargs echo)" | sed -e 's/\./-/g' > .env
|
||||||
sudo docker-compose up -d --build --force-recreate
|
sudo docker-compose up -d
|
||||||
|
|
|
@ -67,6 +67,17 @@
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-test</artifactId>
|
<artifactId>spring-boot-test</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.graalvm.js</groupId>
|
||||||
|
<artifactId>js</artifactId>
|
||||||
|
<version>21.3.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.graalvm.js</groupId>
|
||||||
|
<artifactId>js-scriptengine</artifactId>
|
||||||
|
<version>21.3.0</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
@ -57,12 +57,12 @@ public class TapasAuctionHouseApplication {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (AuctionHouseDiscoveryInformation endpoint : AuctionHouseDiscovery.getInstance().getAuctionHouseDiscoveryList()) {
|
// for (AuctionHouseDiscoveryInformation endpoint : AuctionHouseDiscovery.getInstance().getAuctionHouseDiscoveryList()) {
|
||||||
System.out.println(endpoint.getWebSubUri().getValue());
|
// System.out.println(endpoint.getWebSubUri().getValue());
|
||||||
if (!endpoint.getWebSubUri().getValue().toString().equalsIgnoreCase("https://tapas-auction-house.86-119-35-40.nip.io/websub/auctions")) {
|
// if (!endpoint.getWebSubUri().getValue().toString().equalsIgnoreCase("https://tapas-auction-house.86-119-35-40.nip.io/websub/auctions")) {
|
||||||
subscriber.subscribeToAuctionHouseEndpoint(endpoint.getWebSubUri().getValue());
|
// subscriber.subscribeToAuctionHouseEndpoint(endpoint.getWebSubUri().getValue());
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user