platform/docker/docker-compose-pg.yml
2024-06-23 11:15:41 +08:00

19 lines
311 B
YAML

services:
pgdb:
image: postgres:latest
restart: "no"
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- "db:/var/lib/postgresql/data"
networks:
- webnet
volumes:
db:
driver: local
networks:
webnet: