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"
    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:
