14 lines
289 B
YAML
14 lines
289 B
YAML
|
version: "3.7"
|
||
|
services:
|
||
|
postgres:
|
||
|
image: postgres:latest
|
||
|
restart: always
|
||
|
environment:
|
||
|
- POSTGRES_USER=postgres
|
||
|
- POSTGRES_PASSWORD=postgres
|
||
|
- POSTGRES_DB=postgres
|
||
|
ports:
|
||
|
- "5432:5432"
|
||
|
volumes:
|
||
|
- ./postgres-data:/var/lib/postgresql/data
|