-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
87 lines (79 loc) · 2.17 KB
/
docker-compose.yaml
File metadata and controls
87 lines (79 loc) · 2.17 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
api:
image: ghcr.io/simplenotificationsystem/simplens-core:latest
container_name: api
ports:
- 3000:3000
env_file:
- .env
volumes:
- plugin-data:/app/.plugins
- ./simplens.config.yaml:/app/simplens.config.yaml:ro
command: [ "node", "dist/api/server.js" ]
networks:
- simplens
restart: unless-stopped
healthcheck:
test: [ "CMD", "node", "-e", "require('http').get('http://localhost:3000/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1))" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
worker:
image: ghcr.io/simplenotificationsystem/simplens-core:latest
env_file:
- .env
command: [ "node", "dist/workers/worker.js" ]
networks:
- simplens
restart: unless-stopped
notification_processor:
image: ghcr.io/simplenotificationsystem/simplens-core:latest
env_file:
- .env
volumes:
- plugin-data:/app/.plugins
- ./simplens.config.yaml:/app/simplens.config.yaml:ro
command: [ "node", "dist/processors/unified/unified.processor.js" ]
depends_on:
api:
condition: service_healthy
networks:
- simplens
restart: unless-stopped
delayed_processor:
image: ghcr.io/simplenotificationsystem/simplens-core:latest
env_file:
- .env
command: [ "node", "dist/processors/delayed/delayed.processor.js" ]
networks:
- simplens
restart: unless-stopped
recovery:
image: ghcr.io/simplenotificationsystem/simplens-core:latest
env_file:
- .env
command: [ "node", "dist/workers/recovery/recovery.service.js" ]
networks:
- simplens
restart: unless-stopped
dashboard:
image: ghcr.io/simplenotificationsystem/simplens-dashboard:latest
ports:
- 3002:3002
container_name: dashboard
env_file:
- .env
environment:
PORT: ${DASHBOARD_PORT:-3002}
API_BASE_URL: http://api:${PORT:-3000}
WEBHOOK_HOST: dashboard
WEBHOOK_PORT: ${DASHBOARD_PORT:-3002}
networks:
- simplens
restart: unless-stopped
volumes:
plugin-data:
networks:
simplens:
driver: bridge