- 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>
26 lines
395 B
YAML
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:
|