20 lines
542 B
YAML
20 lines
542 B
YAML
services:
|
|
db:
|
|
image: postgres:14
|
|
container_name: magicwallet-db
|
|
environment:
|
|
POSTGRES_PASSWORD: magicwallet
|
|
POSTGRES_USER: magicwallet
|
|
POSTGRES_DB: magicwallet
|
|
PORT: 5432
|
|
# POSTGRES_HOST_AUTH_METHOD: trust
|
|
ports:
|
|
- 127.0.0.1:5432:5432
|
|
volumes:
|
|
- magicwallet:/var/lib/postgresql/data
|
|
- ./db/postgresql.conf:/etc/postgresql.conf
|
|
- ./db/schema.sql:/docker-entrypoint-initdb.d/schema.sql
|
|
command: postgres -c config_file=/etc/postgresql.conf
|
|
|
|
volumes:
|
|
magicwallet: |