forked from m-bers/docker-virt-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
29 lines (25 loc) · 1.13 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
services:
virt-manager:
image: riklempens/virt-manager:latest
build: .
restart: always
ports:
- 8185:80
environment:
# Set DARK_MODE to true to enable dark mode
DARK_MODE: false
# If connecting to remote libvirtd, you can use a qemu+ssh string like below. Default qemu:///system will connect to local libvirtd:
# HOSTS: "['qemu+ssh://user@host1/system', 'qemu+ssh://user@host2/system']"
HOSTS: "['qemu:///system']"
# If on an Ubuntu host (or any host with the libvirt AppArmor policy, you will need to use an ssh connection to localhost
# or use qemu:///system and uncomment the below line to run the container in privileged mode:
# privileged: true
volumes:
# Volumes needed if connecting to local qemu:///system
- "/var/run/libvirt/libvirt-sock:/var/run/libvirt/libvirt-sock"
- "/var/lib/libvirt/images:/var/lib/libvirt/images"
# If connecting to remote libvirtd, substitute location of ssh private key, e.g.:
# - /home/user/.ssh/id_rsa:/root/.ssh/id_rsa:ro
devices:
# Not needed if connecting to remote libvirtd
- "/dev/kvm:/dev/kvm"