magicwallet/docker-compose.yml
ekzyis 92876c5011 users, sessions and wallets w/o authentication
* if a request has no session cookie, a new user, session and wallet is created and session cookie is set
* if a request has a session cookie and session exists in db, we will fetch user and wallet from db
* this means that we have a user and wallet during each render without any login required
2024-12-15 21:56:26 +01:00

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: