blob: e38510af11c585e99d058a44982853bda73dbaff [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
volumes:
- ./postgres-db-mount:/var/lib/postgresql/data
healthcheck:
test: 'su -c "pg_isready -q" postgres'
interval: 10s
timeout: 2s
retries: 30
networks:
ranger:
name: rangernw