mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
Documenso already replaced the next-auth library with its own Hono-based auth (packages/auth); the only residual 'NextAuth' was the session-cookie secret env var name. Rename it to the codebase's NEXT_PRIVATE_* convention. Identity flows through @hanzo/iam (hanzo.id) via HanzoAuthOptions.
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
name: hanzo-sign-test
|
|
|
|
# Per-tenant SQLite via Hanzo Base — the database is an embedded file under
|
|
# BASE_PATH, so there is no database service; only the mail-capture service
|
|
# remains alongside the app.
|
|
services:
|
|
inbucket:
|
|
image: inbucket/inbucket
|
|
ports:
|
|
- 9000:9000
|
|
- 2500:2500
|
|
- 1100:1100
|
|
|
|
hanzo-sign:
|
|
build:
|
|
context: ../../
|
|
dockerfile: docker/Dockerfile
|
|
depends_on:
|
|
inbucket:
|
|
condition: service_started
|
|
env_file:
|
|
- ../../.env.example
|
|
environment:
|
|
- NEXT_PRIVATE_AUTH_SECRET=secret
|
|
- NEXT_PRIVATE_ENCRYPTION_KEY=CAFEBABE
|
|
- NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY=DEADBEEF
|
|
- BASE_PATH=/opt/hanzo-sign/base/data
|
|
- DATABASE_URL=file:/opt/hanzo-sign/base/data/_dev/sign.db
|
|
- NEXT_PUBLIC_UPLOAD_TRANSPORT=database
|
|
- NEXT_PRIVATE_SMTP_TRANSPORT=smtp-auth
|
|
- NEXT_PRIVATE_SMTP_HOST=inbucket
|
|
- NEXT_PRIVATE_SMTP_PORT=2500
|
|
- NEXT_PRIVATE_SMTP_USERNAME=hanzo-sign
|
|
- NEXT_PRIVATE_SMTP_PASSWORD=password
|
|
- NEXT_PRIVATE_SMTP_FROM_NAME="No Reply @ Hanzo eSign"
|
|
- [email protected]
|
|
- NEXT_PRIVATE_SIGNING_LOCAL_FILE_PATH=/opt/hanzo-sign/cert.p12
|
|
ports:
|
|
- 3000:3000
|
|
volumes:
|
|
- ../../apps/remix/example/cert.p12:/opt/hanzo-sign/cert.p12
|
|
- hanzo-sign_base:/opt/hanzo-sign/base/data
|
|
|
|
volumes:
|
|
hanzo-sign_base:
|