feat(project): add web-app service in the docker compose
This commit is contained in:
@@ -82,16 +82,15 @@ services:
|
||||
hostname: mqtt
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5672:5672" # Management plugin TLS port
|
||||
- "15672:15672" # Management plugin HTTP port
|
||||
- "1883:1883" # MQTT port
|
||||
- "5672:5672" # Management plugin TLS port
|
||||
- "15672:15672" # Management plugin HTTP port
|
||||
- "1883:1883" # MQTT port
|
||||
volumes:
|
||||
- rabbitmq_data:/var/lib/rabbitmq
|
||||
environment:
|
||||
- RABBITMQ_DEFAULT_USER=$MQTT_USERNAME
|
||||
- RABBITMQ_DEFAULT_PASS=$MQTT_PASSWORD
|
||||
command:
|
||||
sh -c "rabbitmq-plugins enable rabbitmq_mqtt && rabbitmq-server"
|
||||
command: sh -c "rabbitmq-plugins enable rabbitmq_mqtt && rabbitmq-server"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "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.tls.certResolver=letsencrypt"
|
||||
- "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