Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save allanmedeiros71/881581022df9d0f765a592558447781c to your computer and use it in GitHub Desktop.

Select an option

Save allanmedeiros71/881581022df9d0f765a592558447781c to your computer and use it in GitHub Desktop.
qemu-stack
services:
qemu:
image: qemux/qemu
container_name: ${CONTAINER_NAME}
environment:
BOOT: "${BOOT}"
RAM_SIZE: "4G"
CPU_CORES: "2"
DISK_SIZE: "40G"
devices:
- /dev/kvm
- /dev/net/tun
cap_add:
- NET_ADMIN
ports:
- ${REMOTE_PORT}:8006
- ${SSH_PORT}:22
volumes:
- ./qemu:/shared
restart: always
stop_grace_period: 2m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment