forked from aurora-is-near/partner-relayer-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
111 lines (111 loc) · 2.91 KB
/
docker-compose.yaml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
version: '3.8'
services:
database:
container_name: testnet_database
image: nearaurora/database-testnet:latest
restart: unless-stopped
ports:
- '127.0.0.1:15432:5432'
volumes:
- ./database:/var/lib/postgresql/data
networks:
static-network:
ipv4_address: 10.123.46.253
indexer:
container_name: testnet_indexer
image: nearaurora/endpoint-testnet:latest
restart: unless-stopped
init: true
depends_on:
- database
environment:
- NEAR_ENV=testnet
- NODE_ENV=testnet
volumes:
- ./config:/srv/aurora/relayer/config
extra_hosts:
- host.docker.internal:host-gateway # See: https://stackoverflow.com/a/43541732
entrypoint: ["sh", "-c", "util/indexer/indexer | node lib/indexer_backend.js"]
networks:
static-network:
ipv4_address: 10.123.46.252
nearcore:
container_name: testnet_nearcore
image: nearaurora/nearcore-testnet:latest
restart: unless-stopped
init: true
depends_on:
- indexer
expose:
- 3030
volumes:
- ./near:/home/near
networks:
static-network:
ipv4_address: 10.123.46.251
resilver:
container_name: testnet_resilver
image: nearaurora/endpoint-testnet:latest
restart: "no"
init: true
depends_on:
- database
- nearcore
environment:
- NEAR_ENV=testnet
- NODE_ENV=testnet
volumes:
- ./config:/srv/aurora/relayer/config
extra_hosts:
- host.docker.internal:host-gateway # See: https://stackoverflow.com/a/43541732
entrypoint: ["sh", "-c", "/srv/aurora/relayer/util/update/update.sh"]
networks:
static-network:
ipv4_address: 10.123.46.250
reverseproxy:
container_name: reverseproxy
image: nearaurora/reverseproxy:latest
restart: unless-stopped
init: true
ports:
- '8080:80' # Remove this line to prevent listening on public IP address.
- '127.0.0.1:8081:80' # Remove the hashtag in the beginning of this line to enable listening on 127.0.0.1.
volumes:
- ./contrib/nginx/testnet:/config
networks:
static-network:
ipv4_address: 10.123.46.249
endpoint:
image: nearaurora/endpoint-testnet:latest
restart: unless-stopped
init: true
depends_on:
- database
- nearcore
environment:
- NEAR_ENV=testnet
- NODE_ENV=testnet
# ports:
# - '8545:8545'
expose:
- '8545'
volumes:
- ./config:/srv/aurora/relayer/config
entrypoint: ["node", "lib/index.js"]
networks:
static-network:
ipv4_address: 10.123.46.200
watchtower:
container_name: watchtower
restart: unless-stopped
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./docker/contrib/config.json:/config.json
command: --interval 30
networks:
static-network:
ipam:
config:
- subnet: 10.123.46.0/24