add docker compose docs

This commit is contained in:
LDprg 2024-05-15 06:24:47 +02:00 committed by GitHub
parent 1fb7ee7818
commit 6b580be6a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,8 +6,39 @@ While working with virsh is completely fine for winapps you have to setup and op
# Requirements
Since docker manages the dependencies of the container automatically you only need to install docker or podman itself. (Podman is recommended because of the faster container startup times)
Since docker manages the dependencies of the container automatically you only need to install docker or podman itself. (Podman is recommended because of the faster container startup times. Note that podman and docker are interchangeable so no instructions will change depending on which one you use)
Note: This will only work on linux systems since some kernel interfaces (like kvm) are needed by the vm. Because of this performance can vary in kernel versions (newer will likely perform better).
# Setup docker container
# Setup docker container
The easiest way to setup a windows vm is by using docker compose. Just create a `docker-compose.yml` with following content:
```yaml
name: "winapps"
volumes:
data:
services:
windows:
image: dockurr/windows
container_name: windows
environment:
VERSION: "win11"
RAM_SIZE: "8G"
CPU_CORES: "4"
privileged: true
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
restart: on-failure
volumes:
- data:/storage
```
Now you can tune the ram/usage by changing RAM_SIZE/CPU_CORES. You can also specify the windows versions you want to use.
Note: Older versions than Windows 10 are not officially supported. However they might still work with some additional tuning.