forked from across-protocol/relayer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
77 lines (72 loc) · 2.08 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
redis:
image: redis:7-alpine
platform: linux/amd64
volumes:
- redis-data:/data
networks:
- across_relayer_network
restart: always
command: redis-server
healthcheck:
test: redis-cli ping
interval: 15s
timeout: 5s
retries: 3
relayer_1:
container_name: relayer_1
image: ${AWS_ECR_REGISTRY}/${AWS_ECR_REPOSITORY}:${ACROSS_RELAYER_IMAGE_TAG}
platform: linux/amd64
depends_on:
redis:
condition: service_healthy
fluent-bit:
condition: service_healthy
networks:
- across_relayer_network
restart: always
command: ["/bin/sh", "/home/lisk/across-relayer/scripts/${NETWORK:-mainnet}/containerStart_relayer_1.sh"]
logging:
driver: fluentd
environment:
- REDIS_URL=redis://redis:6379
ports:
- ${RELAYER_1_API_SERVER_HOST:-0.0.0.0}:${RELAYER_1_API_SERVER_PORT:-3000}:${RELAYER_1_API_SERVER_PORT:-3000}
healthcheck:
test: echo $$(wget --server-response http://relayer_1:${RELAYER_1_API_SERVER_PORT:-3000}/healthz 2>&1 | grep '200 OK') | grep '200' || exit 1
rebalancer:
container_name: rebalancer
image: ${AWS_ECR_REGISTRY}/${AWS_ECR_REPOSITORY}:${ACROSS_RELAYER_IMAGE_TAG}
platform: linux/amd64
depends_on:
redis:
condition: service_healthy
fluent-bit:
condition: service_healthy
networks:
- across_relayer_network
restart: always
command: ["/bin/sh", "/home/lisk/across-relayer/scripts/${NETWORK:-mainnet}/containerStart_rebalancer.sh"]
logging:
driver: fluentd
environment:
- REDIS_URL=redis://redis:6379
fluent-bit:
image: amazon/aws-for-fluent-bit:2.32.2
container_name: fluent-bit
networks:
- across_relayer_network
volumes:
- ./fluentbit_config:/fluent-bit/etc
ports:
- "24224:24224"
- "24224:24224/udp"
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:2020/api/v1/health || exit 1"]
interval: 10s
timeout: 5s
retries: 3
networks:
across_relayer_network:
volumes:
redis-data: