-
Notifications
You must be signed in to change notification settings - Fork 285
Open
Description
Basically, if you open the official docker postgres page there would be the subject's description.
You just need to add this line to your compose.yml file in order to create the default database customer
POSTGRES_DB: customer
version: "3.9"
services:
db:
container_name: postgres
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
POSTGRES_DB: customer
PGDATA: /data/postgres
volumes:
- db:/data/postgres
ports:
- 5432:5432
networks:
- db
restart: unless-stopped
networks:
db:
driver: bridge
volumes:
db:s24407-pj and galessandro
Metadata
Metadata
Assignees
Labels
No labels