version: '3.8'

services:
  easyremote-server:
    build:
      context: .
      dockerfile: Dockerfile.server
    container_name: easyremote-server
    restart: unless-stopped
    ports:
      - "8080:8080"      # HTTP/WebSocket
      - "3478:3478/udp"  # STUN
      - "3479:3479/udp"  # TURN
    volumes:
      - easyremote-data:/app/data
    environment:
      - RUST_LOG=info
      - JWT_SECRET=your-secret-key-change-this
      - ADMIN_USERNAME=admin
      - ADMIN_PASSWORD=admin123
      - ENABLE_LOCAL_STUN=true
      - ENABLE_LOCAL_TURN=true

volumes:
  easyremote-data:
