Master Docker Compose Recipes For Local Dev with 217 free flashcards. Study using spaced repetition and focus mode for effective learning in Programming.
volumes: - ./local:/app
restart: unless-stopped
environment:<br> - KEY=value or env_file: .env
depends_on:<br> db:<br> condition: service_healthy
healthcheck:<br> test: ['CMD-SHELL','pg_isready -U postgres']<br> interval: 5s<br> retries: 10
ports: - '5432:5432' publishes to host.expose: - '5432' reachable only on the Compose network.
<project>_default — services on this network can resolve each other by service name.
Use a named volume: volumes:<br> - pg_data:/var/lib/postgresql/data and declare volumes:<br> pg_data: at the bottom.
docker compose run --rm web bash
docker compose build (or up --build).
docker compose logs -f web
docker compose up -d --scale worker=3
Flashcards
Flip to reveal
Focus Mode
Spaced repetition
Multiple Choice
Test your knowledge
Type Answer
Active recall
Learn Mode
Multi-round mastery
Match Game
Memory challenge