-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.15 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
services:
backend:
image: ghcr.io/vatger/vatger-plugin:latest
container_name: vatger-plugin-api
ports:
- "8022:8000"
restart: unless-stopped
environment:
- MONGO_URI
- MONGO_DATABASE
- REDIS_URL=redis://redis:6379/0
depends_on:
redis:
condition: service_healthy
worker:
image: ghcr.io/vatger/vatger-plugin:latest
container_name: vatger-plugin-worker
restart: unless-stopped
command: taskiq worker app.tkq:broker app.tasks
environment:
- REDIS_URL=redis://redis:6379/0
- DATAFEED_URL=${DATAFEED_URL}
depends_on:
redis:
condition: service_healthy
scheduler:
image: ghcr.io/vatger/vatger-plugin:latest
container_name: vatger-plugin-scheduler
restart: unless-stopped
command: taskiq scheduler app.broker:scheduler
environment:
- REDIS_URL=redis://redis:6379/0
depends_on:
redis:
condition: service_healthy
redis:
container_name: vatger-plugin-redis
image: redis:7-alpine
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5