feat(project): add web-app service in the docker compose
This commit is contained in:
@@ -82,16 +82,15 @@ services:
|
|||||||
hostname: mqtt
|
hostname: mqtt
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "5672:5672" # Management plugin TLS port
|
- "5672:5672" # Management plugin TLS port
|
||||||
- "15672:15672" # Management plugin HTTP port
|
- "15672:15672" # Management plugin HTTP port
|
||||||
- "1883:1883" # MQTT port
|
- "1883:1883" # MQTT port
|
||||||
volumes:
|
volumes:
|
||||||
- rabbitmq_data:/var/lib/rabbitmq
|
- rabbitmq_data:/var/lib/rabbitmq
|
||||||
environment:
|
environment:
|
||||||
- RABBITMQ_DEFAULT_USER=$MQTT_USERNAME
|
- RABBITMQ_DEFAULT_USER=$MQTT_USERNAME
|
||||||
- RABBITMQ_DEFAULT_PASS=$MQTT_PASSWORD
|
- RABBITMQ_DEFAULT_PASS=$MQTT_PASSWORD
|
||||||
command:
|
command: sh -c "rabbitmq-plugins enable rabbitmq_mqtt && rabbitmq-server"
|
||||||
sh -c "rabbitmq-plugins enable rabbitmq_mqtt && rabbitmq-server"
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.mqtt-http.entrypoints=http"
|
- "traefik.http.routers.mqtt-http.entrypoints=http"
|
||||||
@@ -101,3 +100,24 @@ services:
|
|||||||
- "traefik.http.routers.mqtt-https.rule=Host(`mqtt.mse.kb28.ch`)"
|
- "traefik.http.routers.mqtt-https.rule=Host(`mqtt.mse.kb28.ch`)"
|
||||||
- "traefik.http.routers.mqtt-https.tls.certResolver=letsencrypt"
|
- "traefik.http.routers.mqtt-https.tls.certResolver=letsencrypt"
|
||||||
- "traefik.http.services.mqtt-https.loadbalancer.server.port=1883"
|
- "traefik.http.services.mqtt-https.loadbalancer.server.port=1883"
|
||||||
|
|
||||||
|
web-app:
|
||||||
|
image: web-app:1.0
|
||||||
|
container_name: web-app
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
|
||||||
|
environment:
|
||||||
|
- VUE_APP_INFLUXDB_USER=$REST_USERNAME
|
||||||
|
- VUE_APP_INFLUXDB_PASSWORD=$REST_PASSWORD
|
||||||
|
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.web-app-http.entrypoints=http"
|
||||||
|
- "traefik.http.routers.web-app-http.rule=Host(`app.mse.kb28.ch`)"
|
||||||
|
- "traefik.http.middlewares.web-app-redirect.redirectscheme.scheme=https"
|
||||||
|
- "traefik.http.routers.web-app-https.entrypoints=https"
|
||||||
|
- "traefik.http.routers.web-app-https.rule=Host(`app.mse.kb28.ch`)"
|
||||||
|
- "traefik.http.routers.web-app-https.tls.certResolver=letsencrypt"
|
||||||
|
- "traefik.http.services.web-app-https.loadbalancer.server.port=8080"
|
||||||
|
|||||||
Reference in New Issue
Block a user