version: "3.7"

services:
  app_proxy:
    environment:
      APP_HOST: $APP_LNMARKETS_IP
      APP_PORT: $APP_LNMARKETS_PORT
  
  lnmarkets:
    image: ghcr.io/ln-markets/umbrel:v2.0.0@sha256:47b836cd23f7aa9f31aa4ae99ba66f74ffc513388016e31a00f6cb0767144bae
    init: true
    user: 1000:1000
    restart: on-failure
    stop_grace_period: 1m
    volumes:
      - ${APP_LIGHTNING_NODE_DATA_DIR}:/lnd:ro
    environment:
      LND_IP: $APP_LIGHTNING_NODE_IP
      LND_GRPC_PORT: $APP_LIGHTNING_NODE_GRPC_PORT
      BITCOIN_NETWORK: $APP_BITCOIN_NETWORK
      APP_LNMARKETS_PORT: $APP_LNMARKETS_PORT
    networks:
      default:
        ipv4_address: $APP_LNMARKETS_IP
