-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (34 loc) · 980 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (34 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '3.8'
services:
notification-router:
build:
context: .
dockerfile: Dockerfile
container_name: notification-router
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./data:/app/data
environment:
- DATABASE_URL=file:/app/data/db.sqlite
- AUTH_SECRET=${AUTH_SECRET:-your-secret-change-in-production}
- AUTH_URL=http://localhost:3000
- NODE_ENV=production
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
# Optional: Apprise API service (if you prefer API over CLI)
# apprise-api:
# image: caronc/apprise:latest
# container_name: apprise-api
# restart: unless-stopped
# ports:
# - "8000:8000"
# volumes:
# - ./apprise-config:/config
# environment:
# - APPRISE_STATELESS_URLS=gotify://host/token