blob: f891684092fa7867f3af00f6ee463e5311e3a01e [file] [log] [blame]
version: '3'
services:
ranger-db:
build:
context: .
dockerfile: Dockerfile.ranger-postgres
args:
- POSTGRES_VERSION=${POSTGRES_VERSION}
image: ranger-postgres
container_name: ranger-postgres
hostname: ranger-db.example.com
networks:
- ranger
healthcheck:
test: 'su -c "pg_isready -q" postgres'
interval: 10s
timeout: 2s
retries: 30
networks:
ranger:
name: rangernw