A worked example, rendered from real sample data. Sign in to run the tool on your own input.
version: '3'
services:
web:
image: nginx:latest
ports:
- "80:80"
db:
image: postgres:15
environment:
POSTGRES_PASSWORD: secretDocker Compose Validation Report
──────────────────────────────────────────────────
Valid: YES
Services: 2
Custom Network: NO
Volumes Defined: NO
Environment Variables: YES
Warnings:
⚠ No custom network defined. All services share default bridge.
Validate docker-compose.yml files with warnings and best practices. Part of the DevTools Surf developer suite. Browse more tools in the Developer Utilities collection.