DOCKER COMPOSE TOOL DECK
Build multi-container systems interactively with our File Maker or explore the complete syntax registry and pitfall alerts in the Options Reference index.
Stack Configuration & Presets
Customize your microservices configuration below. Add, modify or remove services. Changes will update the `docker-compose.yml` code preview instantly.
version: '3.8'
services:
web-app:
image: node:20-alpine
restart: always
ports:
- "3000:3000"
environment:
- NODE_ENV=production
volumes:
- app_data:/app/data
volumes:
app_data:Create a file named docker-compose.yml in your directory, copy the code content above into it, and launch your stack by executing:
docker compose up -d