27 lines
486 B
YAML
27 lines
486 B
YAML
# I just use this compose file to easily start up test databases
|
|
version: '3'
|
|
|
|
services:
|
|
db:
|
|
image: 'postgres:14-alpine'
|
|
restart: 'always'
|
|
|
|
healthcheck:
|
|
test: pg_isready
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 15s
|
|
|
|
environment:
|
|
- 'POSTGRES_DB=rb'
|
|
- 'POSTGRES_USER=rb'
|
|
- 'POSTGRES_PASSWORD=rb'
|
|
ports:
|
|
- '5434:5432'
|
|
# volumes:
|
|
# - 'db-data:/var/lib/postgresql/data'
|
|
|
|
# volumes:
|
|
# db-data:
|