|
|
- version: "3.4"
- services:
- postgres:
- container_name: postgres
- image: postgres:${POSTGRES_VERSION:-latest}
- restart: unless-stopped
- ports:
- - ${POSTGRES_HOST_IP_ADDRESS:-127.0.0.1}:${POSTGRES_HOST_PORT:-5432}:5432
- volumes:
- - pgdata:/var/lib/postgresql/data
- environment:
- POSTGRES_USER: ${POSTGRES_ADMIN_USER:-sysadmin}
- POSTGRES_PASSWORD: ${POSTGRES_ADMIN_PASSWORD:-password}
-
- volumes:
- pgdata:
|