name: canifa-feedback

services:
  # --- Backend Service ---
  backend:
    build:
      context: .
      dockerfile: Dockerfile.dev
    container_name: canifa_backend
    env_file: .env
    ports:
      - "5006:5000"
    volumes:
      - .:/app
    environment:
      - PORT=5006
    restart: unless-stopped
    deploy:
      resources:
        limits:
          memory: 8g
    networks:
      - canifa_feedback_network
    logging:
      driver: "json-file"
      options:
        tag: "{{.Name}}"

networks:
  canifa_feedback_network:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: "10.101.10.0/24"
          gateway: "10.101.10.1"
