-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.27 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
services:
lite-task:
build: .
ports:
- "${PORT:-8011}:8011"
env_file:
- .env
environment:
- PORT=8011
volumes:
# Single data dir — holds SQLite DB files and uploaded media.
# When TURSO_DB_URL + TURSO_API_KEY are set in .env, the DB files
# are not used (Turso is remote), but uploads still live here.
- ./data:/app/data
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"deno",
"eval",
"const r = await fetch('http://localhost:8011/api/projects'); if (!r.ok) Deno.exit(1);",
]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
bot:
build: .
command: ["deno", "run", "-A", "bot/main.ts"]
env_file:
- .env
environment:
- LITE_TASK_URL=http://lite-task:8011
volumes:
- ./data:/app/data
depends_on:
lite-task:
condition: service_healthy
restart: unless-stopped
event-scheduler:
build: .
command: ["deno", "run", "-A", "calls/event-scheduler.ts"]
env_file:
- .env
environment:
- TZ=${TZ:-America/New_York}
volumes:
- ./data:/app/data
depends_on:
lite-task:
condition: service_healthy
restart: unless-stopped