Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 28 additions & 30 deletions blueprints/notifuse/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ services:
image: postgres:17-alpine
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql/data
- db_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
Expand All @@ -21,38 +21,36 @@ services:
- db
environment:
# Root user configuration
- ROOT_EMAIL=${ROOT_EMAIL}
ROOT_EMAIL: ${ROOT_EMAIL}

# API configuration
- API_ENDPOINT=${API_ENDPOINT}
API_ENDPOINT: ${API_ENDPOINT}

# Database configuration
- DB_HOST=db
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_PREFIX=notifuse
- DB_NAME=notifuse_system
- DB_SSLMODE=disable
DB_HOST: db
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD: postgres
DB_PREFIX: notifuse
DB_NAME: notifuse_system
DB_SSLMODE: disable

# PASETO keys for authentication
# Default keys for testing - GENERATE YOUR OWN for production at https://paseto.notifuse.com/
- PASETO_PRIVATE_KEY=${PASETO_PRIVATE_KEY}
- PASETO_PUBLIC_KEY=${PASETO_PUBLIC_KEY}

# SMTP configuration
- SMTP_HOST=${SMTP_HOST}
- SMTP_PORT=${SMTP_PORT}
- SMTP_USERNAME=${SMTP_USERNAME}
- SMTP_PASSWORD=${SMTP_PASSWORD}
- SMTP_FROM_EMAIL=${SMTP_FROM_EMAIL}
- SMTP_FROM_NAME=${SMTP_FROM_NAME}
# Secret key for authentication (auto-generated)
SECRET_KEY: ${SECRET_KEY}

# Server configuration
- SERVER_PORT=8080
- SERVER_HOST=0.0.0.0
- ENVIRONMENT=production
SERVER_PORT: 8080
SERVER_HOST: 0.0.0.0
ENVIRONMENT: production
volumes:
- notifuse_data:/app/data
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/healthz"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s

volumes:
db-data:
driver: local
db_data: {}
notifuse_data: {}
19 changes: 2 additions & 17 deletions blueprints/notifuse/template.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[variables]
main_domain = "${domain}"
paseto_private_key = "d04zCk3Fa45oOjDWHpAvc1AZxnLdGffOnNWK+Jt2yXf37+FTfuMMHb8flcfPMqLluRR3rvhbr555r6j1DEigrA=="
paseto_public_key = "9+/hU37jDB2/H5XHzzKi5bkUd674W6+eea+o9QxIoKw="
secret_key = "${base64:64}"

[config]
[[config.domains]]
Expand All @@ -12,18 +11,4 @@ host = "${main_domain}"
[config.env]
ROOT_EMAIL = "${email}"
API_ENDPOINT = "https://${main_domain}"

# PASETO keys for authentication
# Default keys for testing - GENERATE YOUR OWN for production at https://paseto.notifuse.com/
PASETO_PRIVATE_KEY = "${paseto_private_key}"
PASETO_PUBLIC_KEY = "${paseto_public_key}"

# SMTP Configuration (users need to configure these)
SMTP_HOST = "smtp.gmail.com"
SMTP_PORT = "587"
SMTP_USERNAME = "your-email@gmail.com"
SMTP_PASSWORD = "your-smtp-password"
SMTP_FROM_EMAIL = "noreply@yourdomain.com"
SMTP_FROM_NAME = "Notifuse"

[[config.mounts]]
SECRET_KEY = "${secret_key}"