Merge branch 'feat/25-cd-for-gateway'
Resolve "CD for gateway" Closes #25 See merge request team-raclette/project-softweng!8
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -90,3 +90,5 @@ fabric.properties
|
|||||||
|
|
||||||
# Android studio 3.1+ serialized cache file
|
# Android studio 3.1+ serialized cache file
|
||||||
.idea/caches/build_file_checksums.ser
|
.idea/caches/build_file_checksums.ser
|
||||||
|
|
||||||
|
config.json
|
||||||
@@ -6,14 +6,24 @@ volumes:
|
|||||||
rabbitmq_data:
|
rabbitmq_data:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
watchtower:
|
||||||
|
image: containrrr/watchtower
|
||||||
|
container_name: watchtower
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- ./config.json:/config.json
|
||||||
|
environment:
|
||||||
|
- DOCKER_CONFIG=/
|
||||||
|
- WATCHTOWER_POLL_INTERVAL=60
|
||||||
|
- WATCHTOWER_LABEL_ENABLE=true
|
||||||
|
|
||||||
gateway:
|
gateway:
|
||||||
image: registry.forge.hefr.ch/team-raclette/project-softweng/gateway:latest
|
image: registry.forge.hefr.ch/team-raclette/project-softweng/gateway:latest
|
||||||
container_name: gateway
|
container_name: gateway
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
networks:
|
|
||||||
- kb28_default
|
|
||||||
environment:
|
environment:
|
||||||
- INFLUXDB_TOKEN=$INFLUXDB_TOKEN
|
- INFLUXDB_TOKEN=$INFLUXDB_TOKEN
|
||||||
- INFLUXDB_ORG=$INFLUXDB_ORG
|
- INFLUXDB_ORG=$INFLUXDB_ORG
|
||||||
@@ -36,6 +46,9 @@ services:
|
|||||||
- "traefik.http.routers.Gateway-https.rule=Host(`rest.mse.kb28.ch`)"
|
- "traefik.http.routers.Gateway-https.rule=Host(`rest.mse.kb28.ch`)"
|
||||||
- "traefik.http.routers.Gateway-https.tls.certResolver=letsencrypt"
|
- "traefik.http.routers.Gateway-https.tls.certResolver=letsencrypt"
|
||||||
- "traefik.http.services.Gateway-https.loadbalancer.server.port=8080"
|
- "traefik.http.services.Gateway-https.loadbalancer.server.port=8080"
|
||||||
|
|
||||||
|
- "com.centurylinklabs.watchtower.enable=true"
|
||||||
|
|
||||||
influxdb:
|
influxdb:
|
||||||
image: influxdb:2
|
image: influxdb:2
|
||||||
container_name: influxdb
|
container_name: influxdb
|
||||||
@@ -62,6 +75,7 @@ services:
|
|||||||
- "traefik.http.routers.influx-https.rule=Host(`influx.mse.kb28.ch`)"
|
- "traefik.http.routers.influx-https.rule=Host(`influx.mse.kb28.ch`)"
|
||||||
- "traefik.http.routers.influx-https.tls.certResolver=letsencrypt"
|
- "traefik.http.routers.influx-https.tls.certResolver=letsencrypt"
|
||||||
- "traefik.http.services.influx-https.loadbalancer.server.port=8086"
|
- "traefik.http.services.influx-https.loadbalancer.server.port=8086"
|
||||||
|
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
image: rabbitmq:3-management-alpine
|
image: rabbitmq:3-management-alpine
|
||||||
container_name: rabbitmq
|
container_name: rabbitmq
|
||||||
|
|||||||
Reference in New Issue
Block a user