-
Notifications
You must be signed in to change notification settings - Fork 338
/
docker-compose.yml
114 lines (107 loc) · 2.88 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
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
112
113
114
# SPDX-License-Identifier: BUSL-1.1
#
# Copyright (C) 2023, Berachain Foundation. All rights reserved.
# Use of this software is govered by the Business Source License included
# in the LICENSE file of this repository and at www.mariadb.com/bsl11.
#
# ANY USE OF THE LICENSED WORK IN VIOLATION OF THIS LICENSE WILL AUTOMATICALLY
# TERMINATE YOUR RIGHTS UNDER THIS LICENSE FOR THE CURRENT AND ALL OTHER
# VERSIONS OF THE LICENSED WORK.
#
# THIS LICENSE DOES NOT GRANT YOU ANY RIGHT IN ANY TRADEMARK OR LOGO OF
# LICENSOR OR ITS AFFILIATES (PROVIDED THAT YOU MAY USE A TRADEMARK OR LOGO OF
# LICENSOR AS EXPRESSLY REQUIRED BY THIS LICENSE).
#
# TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
# AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
# EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
# TITLE.
version: "3.3"
services:
node0:
container_name: polard-node0
image: "polard/seed:v0.0.0"
ports:
- "26656-26658:26656-26658"
- "9090-9091:9090-9091"
- "1545-1546:8545-8546"
environment:
- ID=0
- CHAINID=berachain-localnet-666
volumes:
- type: bind
source: ./temp/seed0
target: /root
networks:
localnet:
ipv4_address: 192.168.10.10
node1:
container_name: polard-node1
image: "polard/seed:v0.0.0"
ports:
- "26659-26661:26656-26658"
- "9092-9093:9090-9091"
- "2547-2548:8545-8546"
environment:
- ID=1
- CHAINID=berachain-localnet-666
volumes:
- type: bind
source: ./temp/seed1
target: /root
networks:
localnet:
ipv4_address: 192.168.10.11
node2:
container_name: polard-node2
image: "polard/seed:v0.0.0"
ports:
- "26662-26664:26656-26658"
- "9094-9095:9090-9091"
- "3549-3550:8545-8546"
environment:
- ID=2
- CHAINID=berachain-localnet-666
volumes:
- type: bind
source: ./temp/seed2
target: /root
networks:
localnet:
ipv4_address: 192.168.10.12
node3:
container_name: polard-node3
image: "polard/seed:v0.0.0"
ports:
- "26665-26667:26656-26658"
- "9096-9097:9090-9091"
- "4551-4552:8545-8546"
environment:
- ID=3
- CHAINID=berachain-localnet-666
volumes:
- type: bind
source: ./temp/seed3
target: /root
networks:
localnet:
ipv4_address: 192.168.10.13
nginx:
depends_on: [ node0, node1, node2, node3 ]
container_name: nginx
image: nginx:latest
ports:
- "8545:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
networks:
localnet:
ipv4_address: 192.168.10.14
networks:
localnet:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.10.0/24