HSG-MCS-HS21_tapas/.deployment/docker-compose.yml

194 lines
8.2 KiB
YAML
Raw Normal View History

2021-10-04 07:13:00 +00:00
version: "3.0"
services:
2021-10-17 13:38:04 +00:00
reverse-proxy:
image: traefik:v2.1.3
command:
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --providers.docker=true
- --certificatesResolvers.le.acme.httpChallenge.entryPoint=web
- --certificatesresolvers.le.acme.email=martin.eigenmann@unisg.ch
- --certificatesresolvers.le.acme.storage=/acme.json
- --providers.docker.exposedByDefault=false
- --serversTransport.insecureSkipVerify=true
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./acme.json:/acme.json
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
- "traefik.http.routers.http-catchall.entrypoints=web"
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
2021-10-04 07:13:00 +00:00
2021-11-22 09:11:33 +00:00
tapas-db:
image: mongo
restart: unless-stopped
container_name: tapas_mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- "27017:27017"
command: mongod --quiet --logpath /dev/null
2021-10-17 13:38:04 +00:00
tapas-tasks:
image: openjdk
command: "java -jar /data/tapas-tasks-0.0.1-SNAPSHOT.jar"
restart: unless-stopped
2021-11-22 09:11:33 +00:00
depends_on:
- tapas-db
2021-10-17 13:38:04 +00:00
volumes:
- ./:/data/
environment:
roster.uri: http://roster:8082
2021-11-26 21:57:34 +00:00
spring.data.mongodb.uri: mongodb://root:password@tapas-db:27017
2021-10-17 13:38:04 +00:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.tapas-tasks.rule=Host(`tapas-tasks.${PUB_IP}.nip.io`)"
- "traefik.http.routers.tapas-tasks.service=tapas-tasks"
- "traefik.http.services.tapas-tasks.loadbalancer.server.port=8081"
- "traefik.http.routers.tapas-tasks.tls=true"
- "traefik.http.routers.tapas-tasks.entryPoints=web,websecure"
- "traefik.http.routers.tapas-tasks.tls.certresolver=le"
2021-10-18 09:45:52 +00:00
tapas-auction-house:
image: openjdk
command: "java -jar /data/tapas-auction-house-0.0.1-SNAPSHOT.jar"
restart: unless-stopped
2021-11-22 09:11:33 +00:00
depends_on:
- tapas-db
2021-10-18 09:45:52 +00:00
volumes:
- ./:/data/
2021-11-17 20:35:38 +00:00
environment:
mqtt.broker.uri: tcp://broker.hivemq.com:1883
2021-12-21 14:30:33 +00:00
discovery.endpoint.uri: https://tapas-auction-house.86-119-34-242.nip.io
2021-12-12 19:24:04 +00:00
auction.house.uri: https://tapas-auction-house.86-119-35-40.nip.io
2021-12-21 14:30:33 +00:00
tasks.list.uri: https://tapas-tasks.86-119-35-40.nip.io
2021-10-18 09:45:52 +00:00
labels:
- "traefik.enable=true"
- "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.services.tapas-auction-house.loadbalancer.server.port=8086"
- "traefik.http.routers.tapas-auction-house.tls=true"
- "traefik.http.routers.tapas-auction-house.entryPoints=web,websecure"
- "traefik.http.routers.tapas-auction-house.tls.certresolver=le"
roster:
2021-10-17 13:38:04 +00:00
image: openjdk
command: "java -jar /data/roster-0.0.1-SNAPSHOT.jar"
2021-10-17 13:38:04 +00:00
restart: unless-stopped
2021-11-22 09:11:33 +00:00
depends_on:
- tapas-db
2021-10-17 13:38:04 +00:00
volumes:
- ./:/data/
2021-11-17 20:35:38 +00:00
environment:
2021-11-28 17:20:36 +00:00
task.list.uri: http://tapas-tasks:8081
2021-12-14 21:19:32 +00:00
auction.house.uri: http://tapas-auction-house:8086
2021-12-22 18:35:09 +00:00
executor.pool.uri: http://executor-pool:8083
2021-11-17 20:35:38 +00:00
mqtt.broker.uri: tcp://broker.hivemq.com:1883
2021-11-26 21:57:34 +00:00
spring.data.mongodb.uri: mongodb://root:password@tapas-db:27017
2021-10-17 13:38:04 +00:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.roster.rule=Host(`roster.${PUB_IP}.nip.io`)"
- "traefik.http.routers.roster.service=roster"
- "traefik.http.services.roster.loadbalancer.server.port=8082"
- "traefik.http.routers.roster.tls=true"
- "traefik.http.routers.roster.entryPoints=web,websecure"
- "traefik.http.routers.roster.tls.certresolver=le"
2021-10-17 13:38:04 +00:00
executor-pool:
image: openjdk
2021-10-17 14:20:21 +00:00
command: "java -jar /data/executor-pool-0.0.1-SNAPSHOT.jar"
2021-10-17 13:38:04 +00:00
restart: unless-stopped
2021-11-22 09:11:33 +00:00
depends_on:
- tapas-db
2021-10-17 13:38:04 +00:00
volumes:
- ./:/data/
2021-11-17 20:35:38 +00:00
environment:
mqtt.broker.uri: tcp://broker.hivemq.com:1883
2021-11-26 21:57:34 +00:00
spring.data.mongodb.uri: mongodb://root:password@tapas-db:27017
2021-10-17 13:38:04 +00:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.executor-pool.rule=Host(`executor-pool.${PUB_IP}.nip.io`)"
- "traefik.http.routers.executor-pool.service=executor-pool"
- "traefik.http.services.executor-pool.loadbalancer.server.port=8083"
- "traefik.http.routers.executor-pool.tls=true"
- "traefik.http.routers.executor-pool.entryPoints=web,websecure"
- "traefik.http.routers.executor-pool.tls.certresolver=le"
executor-computation:
2021-10-17 13:38:04 +00:00
image: openjdk
command: "java -jar /data/executor-computation-0.0.1-SNAPSHOT.jar"
2021-10-17 13:38:04 +00:00
restart: unless-stopped
depends_on:
- executor-pool
- roster
2021-11-22 09:11:33 +00:00
- tapas-db
2021-10-17 13:38:04 +00:00
volumes:
- ./:/data/
2021-11-16 20:17:10 +00:00
environment:
2021-12-22 18:35:09 +00:00
executor.type: COMPUTATION
executor.uri: http://executor-computation:8085
executor.pool.uri: http://executor-pool:8083
roster.uri: http://roster:8082
2021-10-17 13:38:04 +00:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.executor-computation.rule=Host(`executor-computation.${PUB_IP}.nip.io`)"
- "traefik.http.routers.executor-computation.service=executor-computation"
2021-12-22 18:35:09 +00:00
- "traefik.http.services.executor-computation.loadbalancer.server.port=8085"
- "traefik.http.routers.executor-computation.tls=true"
- "traefik.http.routers.executor-computation.entryPoints=web,websecure"
- "traefik.http.routers.executor-computation.tls.certresolver=le"
executor-robot:
2021-10-17 13:38:04 +00:00
image: openjdk
command: "java -jar /data/executor-robot-0.0.1-SNAPSHOT.jar"
2021-10-17 13:38:04 +00:00
restart: unless-stopped
depends_on:
- executor-pool
- roster
2021-11-22 09:11:33 +00:00
- tapas-db
2021-10-17 13:38:04 +00:00
volumes:
- ./:/data/
2021-11-16 20:17:10 +00:00
environment:
2021-12-22 18:35:09 +00:00
executor.type: SMALLROBOT
executor.uri: http://executor-robot:8084
executor.pool.uri: http://executor-pool:8083
roster.uri: http://roster:8082
2021-10-17 13:38:04 +00:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.executor-robot.rule=Host(`executor-robot.${PUB_IP}.nip.io`)"
- "traefik.http.routers.executor-robot.service=executor-robot"
2021-12-22 18:35:09 +00:00
- "traefik.http.services.executor-robot.loadbalancer.server.port=8084"
- "traefik.http.routers.executor-robot.tls=true"
- "traefik.http.routers.executor-robot.entryPoints=web,websecure"
- "traefik.http.routers.executor-robot.tls.certresolver=le"
2021-12-18 15:18:54 +00:00
executor-humidity:
image: openjdk
command: "java -jar /data/executor-humidity-0.0.1-SNAPSHOT.jar"
restart: unless-stopped
depends_on:
- executor-pool
- roster
- tapas-db
volumes:
- ./:/data/
environment:
2021-12-22 18:35:09 +00:00
executor.type: HUMIDITY
executor.uri: http://executor-humidity:8087
executor.pool.uri: http://executor-pool:8083
roster.uri: http://roster:8082
2021-12-18 15:18:54 +00:00
labels:
- "traefik.enable=true"
- "traefik.http.routers.executor-computation.rule=Host(`executor-humidity.${PUB_IP}.nip.io`)"
- "traefik.http.routers.executor-computation.service=executor-computation"
- "traefik.http.services.executor-computation.loadbalancer.server.port=8087"
- "traefik.http.routers.executor-computation.tls=true"
- "traefik.http.routers.executor-computation.entryPoints=web,websecure"
- "traefik.http.routers.executor-computation.tls.certresolver=le"