docker-compose.yml
Snippetversion: "3.9"
services:
web:
image: nginx:latest
ports:
- "80:80"
db:
image: postgres:15
environment:
POSTGRES_PASSWORD: example
v
to map volumes (e.g., v /host/path:/container/path
).p
to map ports (e.g., p 8080:80
).-env-file
to load environment variables from a file.docker-compose.yml
is in your working directory or use f [file]
.Let me know if you need help with a specific workflow! 🐳