version: '3.9'

services:
  news-service:
    build: .
    container_name: news-service
    env_file:
      - .env.example
    ports:
      - "3100:3100"
    environment:
      PORT: 3100
      NEWS_PAGE_SIZE: ${NEWS_PAGE_SIZE:-20}
      NEWS_REFRESH_CRON: ${NEWS_REFRESH_CRON:-0 * * * *}
      DATA_DIR: ${DATA_DIR:-/app/data}
    volumes:
      - ./data:/app/data
    restart: unless-stopped
