-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.24 KB
/
docker-compose.yml
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
name: "lancer-server"
services:
# Original Avalanche Service
avalanche:
build:
context: subnet-evm
dockerfile: ../Dockerfile
args:
AVALANCHE_VERSION: latest # Update with the appropriate version
ports:
- "9650:9650"
- "9651:9651"
volumes:
- ./avalanche:/avalanche
command: >
/avalanchego/build/avalanchego
--data-dir=/avalanche
--network-id=fuji
--config-file=/avalanche/configs/node.json
--staking-port=9671
--log-level=info
restart: unless-stopped
# Service for the Watchdog
watchdog:
build:
context: .
dockerfile: Dockerfile.watchdog
volumes:
- ./avalanche:/avalanche
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- .env
restart: unless-stopped
# Service for Health Checks
health:
build:
context: .
dockerfile: Dockerfile.health
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "8000:8000"
restart: unless-stopped
# Proxy Service
proxy:
image: caddy:latest
ports:
- "443:443"
- "80:80"
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
restart: unless-stopped
volumes:
caddy_data: