btcpayserver-docker/docker-compose-generator/docker-fragments/opt-add-btctransmuter.yml
Honza Pobořil a53860c959
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>
2023-10-31 15:57:45 +01:00

41 lines
1.4 KiB
YAML

version: "3"
services:
btctransmuter:
restart: unless-stopped
image: btcpayserver/btctransmuter:0.0.59
container_name: btctransmuter
environment:
TRANSMUTER_Database: User ID=postgres;Host=postgres;Port=5432;Database=btctransmuter${NBITCOIN_NETWORK:-regtest}
TRANSMUTER_DatabaseType: postgres
TRANSMUTER_DataProtectionDir: data/keys
TRANSMUTER_DataProtectionApplicationName: btctransmuter
TRANSMUTER_ROOTPATH: "/btctransmuter"
TRANSMUTER_ExtensionsDir: data/extensions
NBXplorer_Cryptos: ${BTCPAY_CRYPTOS}
NBXplorer_Uri: http://nbxplorer:32838/
NBXplorer_NetworkType: ${NBITCOIN_NETWORK:-regtest}
NBXplorer_UseDefaultCookie: 1
LETSENCRYPT_HOST: ${BTCTRANSMUTER_HOST}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL:-<no value>}
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:
- postgres
- nbxplorer
- btcpayserver
volumes:
- "btctransmuter_datadir:/app/data"
- "nbxplorer_datadir:/root/.nbxplorer"
btcpayserver:
environment:
BTCPAY_EXTERNALSERVICES: "BTC Transmuter:btctransmuter;"
volumes:
btctransmuter_datadir: