go/docs/examples/linuxkit-server.yml
Snider a57fb4273d docs: restructure for VitePress with flat layout and examples
- Remove mkdocs files (requirements.txt, CNAME)
- Add CLI documentation: build.md, release.md, php.md, run.md
- Add configuration.md with full reference
- Add examples/ directory with sample configurations:
  - go-cli-release.yaml
  - wails-desktop-release.yaml
  - php-laravel-release.yaml
  - linuxkit-server.yml
  - linuxkit-docker-format.yml
  - full-release.yaml
  - minimal-release.yaml
  - official-repos.yaml
- Flatten existing framework docs into framework/
- Update index.md as CLI entry point

Ready for VitePress integration with core-php/docs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 00:38:49 +00:00

51 lines
1.1 KiB
YAML

# Example: LinuxKit Server Configuration
# Minimal immutable Linux server with your application
kernel:
image: linuxkit/kernel:6.6
cmdline: "console=tty0 console=ttyS0"
init:
- linuxkit/init:latest
- linuxkit/runc:latest
- linuxkit/containerd:latest
- linuxkit/ca-certificates:latest
onboot:
- name: sysctl
image: linuxkit/sysctl:latest
- name: dhcpcd
image: linuxkit/dhcpcd:latest
services:
# SSH for management
- name: sshd
image: linuxkit/sshd:latest
binds:
- /etc/ssh/authorized_keys:/root/.ssh/authorized_keys
# Your application
- name: myapp
image: ghcr.io/myorg/myapp:latest
capabilities:
- CAP_NET_BIND_SERVICE
binds:
- /etc/myapp:/etc/myapp:ro
files:
# SSH authorized keys
- path: /etc/ssh/authorized_keys
mode: "0600"
contents: |
ssh-ed25519 AAAA... your-key
# Application config
- path: /etc/myapp/config.yaml
mode: "0644"
contents: |
server:
host: 0.0.0.0
port: 8080
database:
host: ${DB_HOST:-localhost}
port: ${DB_PORT:-5432}