mirror of
https://github.com/better-auth/better-hub
synced 2026-08-09 12:26:04 +00:00
- Modified `docker-compose.yml` to allow dynamic setting of `POSTGRES_PASSWORD` and restrict service ports to localhost. - Enhanced CI workflow by adding permissions for content access. - Updated `.env.example` to include a placeholder for `SENTRY_DSN`. - Improved security in `next.config.ts` by adding headers for content type options, frame options, and transport security. - Refactored Sentry configuration to use environment variables for DSN and adjusted sampling rates based on the environment. - Implemented request header redaction in Sentry to protect sensitive information. - Added session validation in API routes to ensure user authentication. - Introduced input validation for user settings updates using Zod schema.
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: better-hub-postgres
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
|
POSTGRES_DB: better_hub
|
|
ports:
|
|
- "127.0.0.1:54320:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: better-hub-redis
|
|
restart: unless-stopped
|
|
volumes:
|
|
- redis_data:/data
|
|
|
|
redis-rest:
|
|
image: hiett/serverless-redis-http:latest
|
|
container_name: better-hub-redis-rest
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:8079:80"
|
|
environment:
|
|
SRH_MODE: env
|
|
SRH_TOKEN: ${SRH_TOKEN:-local_token}
|
|
SRH_CONNECTION_STRING: redis://redis:6379
|
|
depends_on:
|
|
- redis
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|