2023-09-09 20:52:50 +00:00
|
|
|
services:
|
|
|
|
db:
|
2023-09-09 20:52:50 +00:00
|
|
|
image: postgres:14
|
2023-09-09 20:52:50 +00:00
|
|
|
container_name: delphi-db
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: delphi
|
|
|
|
POSTGRES_USER: delphi
|
|
|
|
POSTGRES_DB: delphi
|
|
|
|
PORT: 5432
|
|
|
|
# POSTGRES_HOST_AUTH_METHOD: trust
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:5432:5432
|
|
|
|
volumes:
|
|
|
|
- delphi:/var/lib/postgresql/data
|
|
|
|
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
2023-09-09 20:52:50 +00:00
|
|
|
- ./postgresql.conf:/var/lib/postgresql/data/postgresql.conf # for some reason this can't be mounted on first run
|
2023-09-09 20:52:50 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
delphi:
|