magicwallet/docker-compose.yml
ekzyis e7fe183cd5 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-10-27 23:45:41 +01:00

20 lines
512 B
YAML

services:
db:
image: postgres:14
container_name: hermes-db
environment:
POSTGRES_PASSWORD: hermes
POSTGRES_USER: hermes
POSTGRES_DB: hermes
PORT: 5432
# POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 127.0.0.1:5432:5432
volumes:
- hermes:/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:
hermes: