Show HN: DockShift – In-Browser Docker Run, Compose, and K8s Converter
One-click instant load & real-time AST parsing
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Quick Demos:
Nginx Proxy
PostgreSQL
Redis Cache
WordPress Stack
Node.js App
One-click instant load & real-time AST parsing
Run → Compose Compose → Run
Docker Run
Clear
0 chars Instant real-time parsing
YAML
JSON AST
Share Link
Copy Output
Deploy to VPS $300 Free
Compose Specification Standard Zero Server Roundtrip
Ready to Deploy This Container Stack? Vultr Cloud
Deploy containers globally across 32 datacenters with high-speed NVMe and receive $300 in free cloud developer credits.
Click any standard deployment example to instantly populate the conversion editor above.
Nginx Web Server
Exposes ports 80/443, mounts read-only web root, and sets auto-restart.
Copy
docker run -d
--name my-nginx
-p 8080:80
-v /data/html:/usr/share/nginx/html:ro
--restart always nginx:alpine
Load into Editor ↑
PostgreSQL 16 Database
Custom port 5432, named data volume, password env, and restart policy.
Copy
docker run -d
--name db -p 5432:5432
-v pgdata:/var/lib/postgresql/data
-e POSTGRES_PASSWORD=secret
--restart unless-stopped postgres:16-alpine
Load into Editor ↑
Redis In-Memory Cache
Port 6379 with persistence directory and customized command arguments.
Copy
docker run -d
--name redis-cache -p 6379:6379
-v /redis:/data --restart always
redis:7-alpine redis-server --appendonly yes
Load into Editor ↑
MySQL 8.0 Server
Custom database name, user credentials, and native UTF-8 collation.
Copy
docker run -d
--name mysql-server -p 3306:3306
-e MYSQL_ROOT_PASSWORD=rootpass
-e MYSQL_DATABASE=app_db
-v mysqldata:/var/lib/mysql mysql:8.0
Load into Editor ↑
WordPress CMS
Exposes port 8080, connects to backend DB host, and mounts wp-content.
Copy
docker run -d
--name wp-app -p 8080:80
-e WORDPRESS_DB_HOST=db:3306
-e WORDPRESS_DB_PASSWORD=secret
-v wp_data:/var/www/html wordpress:latest
Load into Editor ↑
Node.js Web App
Local directory bind mount, internal port 3000, and node startup command.
Copy
docker run -d
--name node-app -p 3000:3000
-v $(pwd):/app -w /app
-e NODE_ENV=production node:20-alpine npm start
Load into Editor ↑
Docker CLI Flags to Compose Specification Mapping
DockShift translates all major flags according to the official Compose Specification standard:
Translate raw docker run commands into clean, declarative docker-compose.yml files.
Decompile Compose specifications back into single-line executable bash CLI commands.
Generate Kubernetes Deployment, Service, and ConfigMap manifests from Docker Compose YAML.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。