2023-03-27 01:33:53 +07:00
|
|
|
version: "3"
|
|
|
|
services:
|
2023-04-13 08:18:48 +07:00
|
|
|
dsm:
|
2023-03-31 00:05:52 +07:00
|
|
|
container_name: dsm
|
2023-03-27 01:33:53 +07:00
|
|
|
image: kroese/virtual-dsm:latest
|
2023-03-31 00:05:52 +07:00
|
|
|
environment:
|
2023-04-05 03:22:14 +07:00
|
|
|
CPU_CORES: "1"
|
2023-04-13 02:29:32 +07:00
|
|
|
DISK_SIZE: "16G"
|
|
|
|
RAM_SIZE: "512M"
|
2023-03-27 01:33:53 +07:00
|
|
|
devices:
|
|
|
|
- /dev/kvm
|
2023-04-04 05:35:39 +07:00
|
|
|
cap_add:
|
2023-04-13 02:29:32 +07:00
|
|
|
- NET_ADMIN
|
2023-03-27 01:33:53 +07:00
|
|
|
ports:
|
|
|
|
- 5000:5000
|
2023-03-31 00:05:52 +07:00
|
|
|
- 5001:5001
|
2023-04-13 02:29:32 +07:00
|
|
|
volumes:
|
|
|
|
- /var/dsm:/storage
|
2023-03-31 00:05:52 +07:00
|
|
|
restart: on-failure
|
2023-04-13 21:10:02 +07:00
|
|
|
stop_grace_period: 1m
|