services:
  onlycoin:
    build: .
    ports:
      - "8787:8787"
    environment:
      HOST: 0.0.0.0
      PORT: 8787
      DATA_DIR: ./data
      NO_BROWSER: "true"
      TRUST_PROXY: "true"
      ONLYCOIN_ENV_PATH: /app/config/.env
    volumes:
      - onlycoin_data:/app/data
      - onlycoin_config:/app/config
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8787/api/health"]
      interval: 15s
      timeout: 5s
      retries: 10

volumes:
  onlycoin_data:
  onlycoin_config:
