1
0

Add proxmox-ve

This commit is contained in:
xrgzs
2024-12-19 21:46:43 +08:00
parent 5e480103b0
commit b8378e94ab
8 changed files with 240 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
additionalProperties:
formFields:
- default: 8006
edit: true
envKey: PANEL_APP_PORT_HTTPS
labelEn: WebUI Port
labelZh: 网页端口
required: true
rule: paramPort
type: number
- default: 192.168.1.2
edit: true
envKey: HOST_ADDRESS
labelEn: IP Address
labelZh: IP地址
required: true
rule: paramCommon
type: text
- default: root
edit: true
envKey: ROOT_PASSWORD
labelEn: Root Password
labelZh: root密码
random: true
required: true
rule: paramComplexity
type: password

View File

View File

@@ -0,0 +1,45 @@
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