-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDOCKER-COMPOSE.YML
More file actions
49 lines (47 loc) · 1.14 KB
/
Copy pathDOCKER-COMPOSE.YML
File metadata and controls
49 lines (47 loc) · 1.14 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
version: '3.8'
services:
# GitHub webhook handler
github-sheets-logger:
build: .
container_name: github-sheets-logger
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
env_file:
- .env
volumes:
- ./credentials.json:/app/credentials.json:ro
- ./logs:/app/logs
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1))"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Etherscan transaction monitor
etherscan-monitor:
build: .
container_name: etherscan-monitor
restart: unless-stopped
command: node etherscan-monitor.js
environment:
- NODE_ENV=production
env_file:
- .env
volumes:
- ./credentials.json:/app/credentials.json:ro
- ./logs:/app/logs
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
depends_on:
- github-sheets-logger