version: '3.8'

services:
  backend:
    build:
      context: .
      dockerfile: Dockerfile
      args:
        - NODE_ENV=development
        - PORT=4000
    image: toptran-backend:development
    container_name: toptran-backend-development
    restart: unless-stopped
    ports:
      - "4000:4000"
    env_file:
      - .env.development
    environment:
      - NODE_ENV=development
    volumes:
      - ./logs:/app/logs
    healthcheck:
      test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:4000/sync/companies"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 40s
