mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-11-02 16:04:52 +08:00
feat: Add custom .yml for Github Codespaces (#1066)
This commit is contained in:
parent
48e7a9fff0
commit
bc0defd813
@ -2,5 +2,5 @@
|
|||||||
"name": "dsm",
|
"name": "dsm",
|
||||||
"service": "dsm",
|
"service": "dsm",
|
||||||
"forwardPorts": [5000],
|
"forwardPorts": [5000],
|
||||||
"dockerComposeFile": "compose.yml"
|
"dockerComposeFile": ".github/codespaces.yml"
|
||||||
}
|
}
|
||||||
|
|||||||
19
.github/codespaces.yml
vendored
Normal file
19
.github/codespaces.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
services:
|
||||||
|
dsm:
|
||||||
|
container_name: dsm
|
||||||
|
image: vdsm/virtual-dsm
|
||||||
|
environment:
|
||||||
|
RAM_SIZE: "max"
|
||||||
|
DISK_SIZE: "max"
|
||||||
|
CPU_CORES: "max"
|
||||||
|
devices:
|
||||||
|
- /dev/kvm
|
||||||
|
- /dev/net/tun
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
|
volumes:
|
||||||
|
- ./dsm:/storage
|
||||||
|
restart: on-failure
|
||||||
|
stop_grace_period: 2m
|
||||||
Loading…
x
Reference in New Issue
Block a user