-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (82 loc) · 1.93 KB
/
Copy pathdocker-compose.yml
File metadata and controls
85 lines (82 loc) · 1.93 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
services:
redis:
image: redis:7-alpine
command: redis-server --save "" --appendonly no
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
api:
build:
context: .
target: api-app
ports:
- "3000:3000"
environment:
- DOCKER_RUN=1
- PORT=3000
- REDIS_URL=redis://redis:6379
- XCM_AUTH_HEADER=${XCM_AUTH_HEADER}
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://localhost:3000/health/app').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
]
interval: 10s
timeout: 5s
retries: 3
jobs:
build:
context: .
target: api-jobs
environment:
- DOCKER_RUN=1
- REDIS_URL=redis://redis:6379
- JOB_NAME=cache-coingecko-tickers-job
- CONTINUOUS_JOB=true
- PGPASSWORD_DB=${PGPASSWORD_DB}
- PGPASSWORD_DB_FALLBACK=${PGPASSWORD_DB_FALLBACK}
- XCM_AUTH_HEADER=${XCM_AUTH_HEADER}
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
monitor:
build:
context: .
target: api-monitor
ports:
- "9090:9090"
environment:
- DOCKER_RUN=1
- REDIS_URL=redis://redis:6379
- MONITOR_PORT=9090
- DISCORD_CHANNEL_ID=884924771584860221
- DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL}
- DEXSCREENER_STALE_THRESHOLD_SECONDS=600
- ORCA_STALE_THRESHOLD_SECONDS=600
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
security_opt:
- no-new-privileges:true