diff --git a/compose/traefik/traefik.yml b/compose/traefik/traefik.yml index 9750d14..d1f9d9b 100644 --- a/compose/traefik/traefik.yml +++ b/compose/traefik/traefik.yml @@ -68,6 +68,17 @@ http: tls: certResolver: letsencrypt + mqttx-router: + rule: "Host(`mqttx.furyhawk.lol`)" + entryPoints: + - web-secure + middlewares: + - csrf + service: mqttx-web + tls: + # https://docs.traefik.io/master/routing/routers/#certresolver + certResolver: letsencrypt + bai-router: rule: "Host(`bai.furyhawk.lol`)" entryPoints: @@ -191,6 +202,10 @@ http: loadBalancer: servers: - url: http://heynote_app:5173 + mqttx-web: + loadBalancer: + servers: + - url: http://mqttx_web:80 streamlit_bai_app: loadBalancer: servers: diff --git a/production.yml b/production.yml index 104b994..2e640a4 100644 --- a/production.yml +++ b/production.yml @@ -27,13 +27,23 @@ services: - OSRM_NOTIFY_FILEPATH=/data/osrm_notify.txt image: furyhawk/osrm-backend:${OSRM_VERSION:-latest} container_name: osrm_backend - restart: always + restart: unless-stopped expose: - ${OSRM_PORT:-5000} networks: - net - default + mqttx-web: + image: emqx/mqttx-web:latest + container_name: mqttx_web + restart: unless-stopped + expose: + - 80 + networks: + - net + - default + heynote-app: image: furyhawk/heynote:${HEYNOTETAG:-latest} container_name: heynote_app @@ -51,7 +61,7 @@ services: <<: *default-environment image: furyhawk/beyondallinfo:latest container_name: streamlit_bai_app - restart: always + restart: unless-stopped expose: - ${STREAMLIT_BAI_SERVER_PORT} command: streamlit run --server.port=$STREAMLIT_BAI_SERVER_PORT --server.address=0.0.0.0 --server.baseUrlPath=$BAI_LOCATION src/app.py @@ -74,7 +84,7 @@ services: dockerfile: ./compose/streamlit-fin/Dockerfile image: streamlit_fin_production container_name: streamlit_fin_app - restart: always + restart: unless-stopped expose: - ${STREAMLIT_FIN_SERVER_PORT} networks: