services:
  server:
    container_name: aida_design2garment
    build:
      context: .
      dockerfile: Dockerfile
    working_dir: /app
    volumes:
      - .:/app
    ports:
      - "10080:8000"
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              device_ids: [ '1' ]
              capabilities:
                - gpu
    networks:
      - aida_app_net
networks:
  aida_app_net:
    external: true
    name: aida_app_net