Add Haskell MVP BFF with mutation protocol and local compose stack.
This commit is contained in:
parent
5759938f3f
commit
6bc08bd7bf
1 changed files with 3123 additions and 3 deletions
48
deploy/docker-compose.yml
Normal file
48
deploy/docker-compose.yml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_USER: nuthatch
|
||||
POSTGRES_PASSWORD: nuthatch
|
||||
POSTGRES_DB: nuthatch
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
|
||||
minio:
|
||||
image: minio/minio:RELEASE.2025-04-22T22-12-26Z
|
||||
command: server /data --console-address ":9001"
|
||||
environment:
|
||||
MINIO_ROOT_USER: minioadmin
|
||||
MINIO_ROOT_PASSWORD: minioadmin
|
||||
|
||||
minio-init:
|
||||
image: minio/mc:RELEASE.2025-04-16T18-13-26Z
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
until mc alias set local http://minio:9000 minioadmin minioadmin; do sleep 1; done
|
||||
mc mb --ignore-existing local/nuthatch
|
||||
exit 0
|
||||
|
||||
nuthatch:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
NUTHATCH_LISTEN: 0.0.0.0:8080
|
||||
NUTHATCH_PUBLIC_BASE_URL: http://127.0.0.1:8080
|
||||
NUTHATCH_JWT_SECRET: dev-only-change-me-to-a-long-random-string
|
||||
NUTHATCH_PG_CONN: host=postgres port=5432 user=nuthatch password=nuthatch dbname=nuthatch
|
||||
NUTHATCH_REDIS_URL: redis://redis:6379/0
|
||||
NUTHATCH_S3_ENDPOINT: http://minio:9000
|
||||
NUTHATCH_S3_REGION: us-east-1
|
||||
NUTHATCH_S3_BUCKET: nuthatch
|
||||
NUTHATCH_S3_ACCESS_KEY: minioadmin
|
||||
NUTHATCH_S3_SECRET_KEY: minioadmin
|
||||
NUTHATCH_S3_PATH_STYLE: "true"
|
||||
NUTHATCH_AUTH_MODE: dev
|
||||
ports:
|
||||
- "8080:8080"
|
||||
restart: on-failure
|
||||
Loading…
Reference in a new issue