version: "3.7"
services:
  app_proxy:
    environment:
      APP_HOST: albyhub_server_1
      APP_PORT: 8080
  server:
    image: ghcr.io/getalby/hub:v1.21.6@sha256:dc05806a3384f57ded8aca2ba58d47ec93a0aeb213539b5faf32e7a3c71b5c32
    user: 1000:1000
    volumes:
      - ${APP_DATA_DIR}/data:/data
      - ${DFWEBOS_ROOT}/app-data/lightning/data/lnd:/lnd:ro
    environment:
      LN_BACKEND_TYPE: ${APP_ALBYHUB_LN_BACKEND:-LDK}
      LND_ADDRESS: ${APP_ALBYHUB_LND_ADDRESS}
      LND_CERT_FILE: ${APP_ALBYHUB_LND_CERT_FILE}
      LND_MACAROON_FILE: ${APP_ALBYHUB_LND_MACAROON_FILE}
      WORK_DIR: "/data/albyhub"
      COOKIE_SECRET: ${APP_SEED}
      LOG_EVENTS: "true"
    restart: on-failure
    stop_grace_period: 3m
