|
|
- version: "3.4"
- services:
- postgres:
- container_name: postgres
- image: postgres:13.4
- restart: unless-stopped
- ports:
- - <host-ip-address>:5432:5432
- volumes:
- - pgdata:/var/lib/postgresql/data
- environment:
- POSTGRES_USER: <user>
- POSTGRES_PASSWORD: <password>
-
- volumes:
- pgdata:
|