docker-compose.yml
version: '3.8'
services:
postgres:
image: postgres
restart: unless-stopped
ports:
- 5432:5432
volumes:
- ./data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=pw
- POSTGRES_USER=user