Docker compose cheat sheet
Notesdocker compose up -d
docker compose up --build
docker compose down
docker compose down --rmi all --volumes
PostgreSQL
version: '3.9'
services:
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: dev
ports:
- "5432:5432"