container-schulung/listings/exercises/ex11-compose-volume/docker-compose.yml
Frank Engel bd046e626d Tag 2 Materialien: Exercises ex05-ex15 + Ubuntu 24.04 Setup
- listings/exercises/ex05-ex15: alle Übungsdateien für Tag 2
  (Networking, Bind Mounts, Volumes, Env Variables, Compose, Build, Push, Registry)
- setup/setup-ubuntu2404.sh: Prep-Script für Ubuntu 24.04 (Noble)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 22:04:17 +02:00

26 lines
395 B
YAML

services:
db:
image: postgres:16-alpine
environment:
POSTGRES_DB: myapp
POSTGRES_USER: app
POSTGRES_PASSWORD: secret
volumes:
- db-data:/var/lib/postgresql/data
networks:
- backend
web:
image: nginx:1.27-alpine
ports:
- "8080:80"
depends_on:
- db
networks:
- backend
volumes:
db-data:
networks:
backend: