From 583220b53919acb3a9fa2fb29d1da94305255b9f Mon Sep 17 00:00:00 2001 From: Teck Meng Date: Mon, 22 Apr 2024 16:01:44 +0800 Subject: [PATCH] Update traefik.yml to remove fin-router and streamlit-fin services --- compose/traefik/traefik.yml | 18 +++++++++--------- production.yml | 30 +++++++++++++++--------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/compose/traefik/traefik.yml b/compose/traefik/traefik.yml index a4dc29d..b691251 100644 --- a/compose/traefik/traefik.yml +++ b/compose/traefik/traefik.yml @@ -140,15 +140,15 @@ http: tls: certResolver: letsencrypt - fin-router: - rule: "Host(`fin.furyhawk.lol`)" - entryPoints: - - web-secure - middlewares: - - csrf - service: streamlit_fin_app - tls: - certResolver: letsencrypt + # fin-router: + # rule: "Host(`fin.furyhawk.lol`)" + # entryPoints: + # - web-secure + # middlewares: + # - csrf + # service: streamlit_fin_app + # tls: + # certResolver: letsencrypt info-router: rule: "Host(`furyhawk.lol`, `www.furyhawk.lol`, `info.furyhawk.lol`, `124c41.furyhawk.lol`)" diff --git a/production.yml b/production.yml index e91dcd3..bec0b1a 100644 --- a/production.yml +++ b/production.yml @@ -97,21 +97,21 @@ services: source: ${PWD}/cache/short_cache.sqlite target: /app/short_cache.sqlite - streamlit-fin: - environment: - <<: *default-environment - build: - context: . - dockerfile: ./compose/streamlit-fin/Dockerfile - image: streamlit_fin_production - container_name: streamlit_fin_app - restart: unless-stopped - expose: - - ${STREAMLIT_FIN_SERVER_PORT} - networks: - - net - - default - command: streamlit run --server.port=$STREAMLIT_FIN_SERVER_PORT --server.address=0.0.0.0 --server.baseUrlPath=$FIN_LOCATION src/app.py + # streamlit-fin: + # environment: + # <<: *default-environment + # build: + # context: . + # dockerfile: ./compose/streamlit-fin/Dockerfile + # image: streamlit_fin_production + # container_name: streamlit_fin_app + # restart: unless-stopped + # expose: + # - ${STREAMLIT_FIN_SERVER_PORT} + # networks: + # - net + # - default + # command: streamlit run --server.port=$STREAMLIT_FIN_SERVER_PORT --server.address=0.0.0.0 --server.baseUrlPath=$FIN_LOCATION src/app.py site_server: image: nginx:alpine