-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.2 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
version: '3.8'
services:
bot:
build:
context: .
dockerfile: bot/Dockerfile
container_name: defiprice-bot
restart: unless-stopped
env_file:
- .env
volumes:
- ./bot/logs:/app/logs
networks:
- defiprice-network
healthcheck:
test: ["CMD", "node", "-e", "process.exit(0)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
dashboard:
build:
context: .
dockerfile: dashboard/Dockerfile
container_name: defiprice-dashboard
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_SOMNIA_RPC_URL=${NEXT_PUBLIC_SOMNIA_RPC_URL}
- NEXT_PUBLIC_SCHEMA_ID=${NEXT_PUBLIC_SCHEMA_ID}
- NEXT_PUBLIC_PUBLISHER_ADDRESS=${NEXT_PUBLIC_PUBLISHER_ADDRESS}
- NEXT_PUBLIC_PAIR_KEYS=${NEXT_PUBLIC_PAIR_KEYS}
networks:
- defiprice-network
depends_on:
- bot
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
defiprice-network:
driver: bridge
volumes:
bot-logs: