feat(gateway): added watchtower service for automatic container updates
Signed-off-by: Klagarge <remi@heredero.ch>
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,6 +6,18 @@ 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
|
||||||
@@ -36,6 +48,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 +77,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