services:
  fava:
    image: yegle/fava:latest
    container_name: fava
    restart: unless-stopped
    ports:
      - "5000:5000"
    environment:
      - FAVA_HOST=0.0.0.0
      - FAVA_PORT=5000
      - BEANCOUNT_FILE=/ledger/main.bean
    volumes:
      - ./ledger:/ledger:ro
    networks:
      - fava-network

networks:
  fava-network:
    name: fava-net
    external: false
