services:
  koala-sync:
    image: ghcr.io/shik3i/koalasync:latest
    container_name: KoalaSync
    restart: always
    ports:
      - "3000:3000"
    environment:
      - TZ=Europe/Berlin
      - PORT=3000
      - MIN_VERSION=1.0.0
      - MAX_ROOMS=100
      - MAX_PEERS_PER_ROOM=50
    # KoalaSync uses in-memory storage for the relay, 
    # so no persistent database volume is required.
    pids_limit: 2048
    # Example for custom network (e.g., Unraid/Macvlan)
    # networks:
    #   custom_network:
    #     ipv4_address: 192.168.1.XXX

# networks:
#   custom_network:
#     external: true
#     name: br0
