services:
  app:
    build: .
    ports: ["5000:5000"]
    env_file: .env
    volumes:
      - ./uploads:/app/uploads
    depends_on: [db]
  db:
    image: mysql:8
    environment:
      MYSQL_DATABASE: iptrm
      MYSQL_USER: iptrm
      MYSQL_PASSWORD: your-db-password
      MYSQL_ROOT_PASSWORD: your-root-password
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
    volumes: [dbdata:/var/lib/mysql]
volumes:
  dbdata:
