version: '2' services: idcard: hostname: idcard container_name: idcard restart: always image: registry.cn-hangzhou.aliyuncs.com/sxtest/idcard:gpu privileged: true ipc: host tty: true working_dir: /workspace ports: - '18811:8080' - '122:22' volumes: - ./:/workspace # deploy: # resources: # reservations: # devices: # - capabilities: [gpu]