Skip to content

Add .env configuration, Docker Desktop and RustDesk installation automation#2

Merged
bbj4t merged 4 commits into
masterfrom
copilot/create-docker-compose-env
Nov 22, 2025
Merged

Add .env configuration, Docker Desktop and RustDesk installation automation#2
bbj4t merged 4 commits into
masterfrom
copilot/create-docker-compose-env

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 22, 2025

Implements environment-based configuration for Docker Compose, automated Docker Desktop installation for Windows hosts, and RustDesk client setup with custom relay server support as an RDP alternative.

Changes

Environment-based configuration

  • .env.example: Template for all configurable parameters (Windows version, credentials, hardware specs, network, storage paths)
  • compose.yml: Refactored to use environment variables with defaults: ${VERSION:-11}, ${RAM_SIZE:-4G}, etc.
  • .gitignore: Exclude .env and data directories
# compose.yml now supports:
environment:
  VERSION: "${VERSION:-11}"
  USERNAME: "${USERNAME:-Docker}"
  RAM_SIZE: "${RAM_SIZE:-4G}"
  CPU_CORES: "${CPU_CORES:-2}"

Docker Desktop installation script

  • install-docker-desktop.ps1: Automates Docker Desktop + WSL2 setup on Windows
    • Version compatibility checks (Build 19041+)
    • WSL2 feature enablement
    • Uses Invoke-WebRequest for modern TLS
    • Silent installation with error handling

RustDesk remote desktop alternative

  • install-rustdesk.ps1: Installs RustDesk client with custom relay configuration
    • Custom relay server support: -RelayServer, -ApiServer, -Key parameters
    • TOML config management (prevents duplicates via regex replacement)
    • Service installation for unattended access
# Example: Connect to custom relay
.\install-rustdesk.ps1 -RelayServer "relay.example.com" -Key "pubkey..."

RustDesk provides NAT traversal without VPN, cross-platform support, and self-hosted relay options.

Documentation

  • SETUP.md: Comprehensive guide covering environment config, installation scripts, RDP vs RustDesk comparison, security considerations
  • readme.md: Added references to new features and RDP alternatives FAQ
Original prompt

-create docker compose with .env file for hardware, creditial config
-create win ps script that installs docker desktop as part of the install
-what rdp options are aail besides vpc. can rust desk client be installed to connect to my remote relay server


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits November 22, 2025 05:48
Co-authored-by: bbj4t <218265450+bbj4t@users.noreply.github.com>
…nput, and config handling

Co-authored-by: bbj4t <218265450+bbj4t@users.noreply.github.com>
Co-authored-by: bbj4t <218265450+bbj4t@users.noreply.github.com>
@bbj4t bbj4t marked this pull request as ready for review November 22, 2025 05:55
@bbj4t bbj4t merged commit 3ec13f1 into master Nov 22, 2025
4 checks passed
Copilot AI changed the title [WIP] Create docker compose with .env file for hardware setup Add .env configuration, Docker Desktop and RustDesk installation automation Nov 22, 2025
Copilot AI requested a review from bbj4t November 22, 2025 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants