services:
  eudora:
    image: ghcr.io/eudora-hq/eudora:latest
    # To build locally instead: uncomment the lines below and comment out image:
    # build:
    #   context: .
    #   dockerfile: server/Dockerfile
    ports:
      - "3001:3001"
    volumes:
      - eudora-data:/app/data
    env_file:
      - .env
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "wget", "-qO-", "http://localhost:3001/health"]
      interval: 30s
      timeout: 5s
      retries: 3

volumes:
  eudora-data:
