services:
  proxmox-ve:
    image: makedie/proxmox_ve:8.3.1-1
    container_name: ${CONTAINER_NAME}
    restart: unless-stopped
    tty: true
    environment:
      - root_password=${ROOT_PASSWORD}
      - port=${PANEL_APP_PORT_HTTPS}
      - TZ=Asia/Shanghai
    # devices:
    #   - /dev/dri
    #   - /dev/fuse
    #   - /dev/kvm
    #   - /dev/vfio
    #   - /dev/nvidia0
    #   - /dev/nvidiactl
    #   - /dev/nvidia-uvm
    #   - /dev/nvidia-uvm-tools
    #   - /dev/nvidia-vgpu1
    # cap_add:
    # - SYS_ADMIN
    # - NET_ADMIN
    network_mode: host
    volumes:
      # - /sys/fs/cgroup:/sys/fs/cgroup:ro
      # - /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd
      # - /sys/fs/fuse:/sys/fs/fuse
      # - /var/run/openvswitch:/host/var/run/openvswitch
      - ./data/vz:/var/lib/vz
      - ./data/pve-cluster:/var/lib/pve-cluster
      - ./data/pve-manager:/var/lib/pve-manager
    tmpfs:
      - /tmp
      - /var/run
      - /var/cache
      - /run/lock
    labels:
      createdBy: "Apps"
    extra_hosts:
      - "shop.maurer-it.com:127.0.0.1"
      - "${CONTAINER_NAME}:${HOST_ADDRESS}"
    hostname: ${CONTAINER_NAME}
    stop_grace_period: 2m
    privileged: true