cleanup "version" as its deprecated; add windows in a docker` (#26)

This commit is contained in:
Dziad Borowy
2025-01-15 10:22:06 +00:00
committed by GitHub
parent c3a8a8e5f5
commit 5152091fb2
34 changed files with 108 additions and 40 deletions

View File

@@ -13,7 +13,6 @@ bitwarden_rs is an unofficial Bitwarden compatible server.
## docker-compose.yml
```yml
---
version: '3'
services:
bitwarden:
image: bitwardenrs/server:latest

View File

@@ -25,13 +25,13 @@ services:
- TZ=Europe/Dublin
# - PASSWORD=password #optional
# - SUDO_PASSWORD=password #optional
- PROXY_DOMAIN=code.example.com #optional
- PROXY_DOMAIN=code.example.com #optional
# To get extensions from M$ store - add these:
# To get extensions from M$ store - add these:
- SERVICE_URL=https://marketplace.visualstudio.com/_apis/public/gallery
- ITEM_URL=https://marketplace.visualstudio.com/items
volumes:
- ./config:/config
# folder that will show up in the Code file tree
- /var/www/project1:/config/workspace/project1
# folder that will show up in the Code file tree
- /var/www/project1:/config/workspace/project1
```

View File

@@ -13,7 +13,6 @@
## docker-compose.yml
```yml
---
version: '3'
services:
firefox-sync:
image: mozilla/syncserver:latest

87
apps/other/windows.md Normal file
View File

@@ -0,0 +1,87 @@
# Windows 7 in a Docker container
- [Github repo](https://github.com/dockur/windows)
## docker-compose.yml
```yml
---
services:
windows:
image: dockurr/windows
container_name: windows
restart: unless-stopped
devices:
- /dev/kvm
- /dev/net/tun
cap_add:
- NET_ADMIN
ports:
- 8006:8006
- 3389:3389/tcp
- 3389:3389/udp
stop_grace_period: 2m
environment:
CPU_CORES: "4"
RAM_SIZE: "8G"
DISK_SIZE: "128G"
USERNAME: "admin"
volumes:
- ./windows:/storage
- ./win7.iso:/custom.iso
```
## Tips & Tricks
### Custom ISO image
Just add this bit (and remove the `VERSION` environment variable) to the `docker-compose.yml` file:
```yml
volumes:
- /home/user/example.iso:/custom.iso
```
### CPU & RAM
By default, the container will be allowed to use a maximum of 2 CPU cores and 4 GB of RAM.
If you want to adjust this, you can specify the desired amount using the following environment variables:
```yml
environment:
RAM_SIZE: "8G"
CPU_CORES: "4"
```
### Username and password
By default, a user called `Docker` is created during the installation, with an **empty password**.
If you want to use different credentials, you can change them in your compose file:
```yml
environment:
USERNAME: "bill"
PASSWORD: "gates"
```
### Storage location
To change the storage location, include the following bind mount in your compose file:
```yml
volumes:
- /var/win:/storage
```
### Storage size
To expand the default size of **64 GB**, add the `DISK_SIZE` setting to your compose file and set it to your preferred capacity:
```yml
environment:
DISK_SIZE: "256G"
```
### Sharing files with the host
Open **File Explorer** and click on the **Network** section, you will see a computer called **host.lan**. Double-click it and it will show a folder called **Data**, which can be bound to any folder on your host via the compose file:
```yml
volumes:
- /home/user/example:/data
```