This repository has been archived on 2023-07-04. You can view files and clone it, but cannot push or open issues/pull-requests.
blog/docker-compose.yml

27 lines
486 B
YAML
Raw Permalink Normal View History

2021-11-23 17:49:31 +01:00
# I just use this compose file to easily start up test databases
version: '3'
services:
db:
2021-11-23 17:49:31 +01:00
image: 'postgres:14-alpine'
restart: 'always'
2021-12-25 10:42:36 +01:00
healthcheck:
test: pg_isready
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
2021-11-23 17:49:31 +01:00
environment:
2021-12-25 10:42:36 +01:00
- 'POSTGRES_DB=rb'
2021-11-23 17:49:31 +01:00
- 'POSTGRES_USER=rb'
- 'POSTGRES_PASSWORD=rb'
ports:
- '5433:5432'
# volumes:
# - 'db-data:/var/lib/postgresql/data'
# volumes:
# db-data: