Common snippets for Docker Compose.
Postgres
services:
# Run a Postgres database.
# The default user is "postgres" with password "hackme".
postgres:
image: postgres:14
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: hackme
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
postgres-data: