1
0

Move Traefik labels to services files (#731)

* Upgraded Traefik to 2.5.

* Added paths routes for some services.

* Removed not needed files copying.

* Updated README.

* Added new config.

* Fixed services paths.

* Fixed btctransmuter rule.

* Changed log level.

* Upgraded Traefik.

* Changed true values to strings to improve compatibility.

* Removed services configs from traefik.yml.

---------

Co-authored-by: Andrew Camilleri <kukks@btcpayserver.org>
This commit is contained in:
Honza Pobořil
2023-10-31 15:57:45 +01:00
committed by GitHub
parent b2d8161e48
commit a53860c959
7 changed files with 17 additions and 18 deletions

View File

@@ -57,6 +57,9 @@ services:
RTL_SSO: 1
RTL_COOKIE_PATH: /data/.cookie
LOGOUT_REDIRECT_LINK: /server/services
labels:
traefik.enable: "true"
traefik.http.routers.bitcoin_rtl.rule: Host(`${BTCPAY_HOST}`) && (Path(`/rtl`) || PathPrefix(`/rtl/`))
volumes:
- "clightning_bitcoin_datadir:/root/.lightning"
- "bitcoin_datadir:/etc/bitcoin"

View File

@@ -57,7 +57,7 @@ services:
expose:
- "3000"
labels:
traefik.enable: true
traefik.enable: "true"
traefik.http.routers.bitcoin_rtl.rule: Host(`${BTCPAY_HOST}`) && (Path(`/rtl`) || PathPrefix(`/rtl/`))
links:
- eclair_bitcoin

View File

@@ -68,6 +68,9 @@ services:
- "lnd_bitcoin_rtl_datadir:/data"
expose:
- "3000"
labels:
traefik.enable: "true"
traefik.http.routers.bitcoin_rtl.rule: Host(`${BTCPAY_HOST}`) && (Path(`/rtl`) || PathPrefix(`/rtl/`))
links:
- lnd_bitcoin

View File

@@ -20,6 +20,10 @@ services:
BTCPAY_DEBUGLOG: btcpay.log
BTCPAY_UPDATEURL: https://api.github.com/repos/btcpayserver/btcpayserver/releases/latest
BTCPAY_DOCKERDEPLOYMENT: "true"
labels:
traefik.enable: "true"
traefik.http.routers.btcpayserver.rule: Host(`${BTCPAY_HOST}`)
# Traefic can not accept list from BTCPAY_ADDITIONAL_HOSTS, see Traefik/README.md
links:
- postgres
volumes:

View File

@@ -21,6 +21,9 @@ services:
VIRTUAL_HOST: ${BTCTRANSMUTER_HOST}
VIRTUAL_HOST_NAME: "btctransmuter"
TRANSMUTER_BTCPayAuthServer: "http://btcpayserver:49392"
labels:
traefik.enable: "true"
traefik.http.routers.btctransmuter.rule: Host(`${BTCPAY_HOST}`) && (Path(`/btctransmuter`) || PathPrefix(`/btctransmuter/`))
expose:
- "80"
links:

View File

@@ -19,6 +19,9 @@ services:
NO_CLIENT_ACCOUNTS: "true"
LOG_LEVEL: debug
LOGOUT_URL: "/server/services/thunderhub/BTC"
labels:
traefik.enable: "true"
traefik.http.routers.bitcoin_thub.rule: Host(`${BTCPAY_HOST}`) && (Path(`/thub`) || PathPrefix(`/thub/`))
volumes:
- "lnd_bitcoin_datadir:/etc/lnd"
- "lnd_bitcoin_thub_datadir:/data"

View File

@@ -13,23 +13,6 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock"
- "../Traefik/traefik.yml:/traefik.yml"
- "traefik_data:/data"
bitcoin_rtl:
labels:
traefik.enable: true
traefik.http.routers.bitcoin_rtl.rule: Host(`${BTCPAY_HOST}`) && (Path(`/rtl`) || PathPrefix(`/rtl/`))
btcpayserver:
labels:
traefik.enable: true
traefik.http.routers.btcpayserver.rule: Host(`${BTCPAY_HOST}`)
# Traefic can not accept list from BTCPAY_ADDITIONAL_HOSTS, see Traefik/README.md
btctransmuter:
labels:
traefik.enable: true
traefik.http.routers.btctransmuter.rule: Host(`${BTCPAY_HOST}`) && (Path(`/btctransmuter`) || PathPrefix(`/btctransmuter/`))
bitcoin_thub:
labels:
traefik.enable: true
traefik.http.routers.bitcoin_thub.rule: Host(`${BTCPAY_HOST}`) && (Path(`/thub`) || PathPrefix(`/thub/`))
volumes:
traefik_data: