26 lines
573 B
YAML
26 lines
573 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16
|
|
container_name: budget-postgres
|
|
environment:
|
|
POSTGRES_DB: budgetdb
|
|
POSTGRES_USER: budget
|
|
POSTGRES_PASSWORD: budget123
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
- ./db/schema.sql:/docker-entrypoint-initdb.d/01_schema.sql:ro
|
|
- ./db/seed.sql:/docker-entrypoint-initdb.d/02_seed.sql:ro
|
|
|
|
adminer:
|
|
image: adminer:4
|
|
container_name: budget-adminer
|
|
ports:
|
|
- "8080:8080"
|
|
depends_on:
|
|
- postgres
|
|
|
|
volumes:
|
|
postgres_data:
|