-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclusternodes-compose.yml
More file actions
68 lines (68 loc) · 2.13 KB
/
clusternodes-compose.yml
File metadata and controls
68 lines (68 loc) · 2.13 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
services:
leader:
container_name: ${CONTAINER_NAME}-leader
image: ravendb/ravendb:${RAVENDB_VERSION}
ports:
- 8081:8080
- 38889:38888
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- RAVEN_Security_UnsecuredAccessAllowed=PublicNetwork
- RAVEN_Setup_Mode=None
- RAVEN_License_Eula_Accepted=true
- "RAVEN_ServerUrl=http://172.29.1.1:8080"
- "RAVEN_PublicServerUrl=http://host.docker.internal:8081"
- "RAVEN_ServerUrl_Tcp=tcp://172.29.1.1:38888"
- "RAVEN_PublicServerUrl_Tcp=tcp://host.docker.internal:38889"
networks:
cluster_network:
ipv4_address: 172.29.1.1
follower1:
container_name: ${CONTAINER_NAME}-follower1
image: ravendb/ravendb:${RAVENDB_VERSION}
depends_on:
- leader
ports:
- 8082:8080
- 38890:38888
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- RAVEN_Security_UnsecuredAccessAllowed=PublicNetwork
- RAVEN_Setup_Mode=None
- RAVEN_License_Eula_Accepted=true
- "RAVEN_ServerUrl=http://172.29.1.2:8080"
- "RAVEN_PublicServerUrl=http://host.docker.internal:8082"
- "RAVEN_ServerUrl_Tcp=tcp://172.29.1.2:38888"
- "RAVEN_PublicServerUrl_Tcp=tcp://host.docker.internal:38890"
networks:
cluster_network:
ipv4_address: 172.29.1.2
follower2:
container_name: ${CONTAINER_NAME}-follower2
image: ravendb/ravendb:${RAVENDB_VERSION}
depends_on:
- leader
ports:
- 8083:8080
- 38891:38888
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- RAVEN_Security_UnsecuredAccessAllowed=PublicNetwork
- RAVEN_Setup_Mode=None
- RAVEN_License_Eula_Accepted=true
- "RAVEN_ServerUrl=http://172.29.1.3:8080"
- "RAVEN_PublicServerUrl=http://host.docker.internal:8083"
- "RAVEN_ServerUrl_Tcp=tcp://172.29.1.3:38888"
- "RAVEN_PublicServerUrl_Tcp=tcp://host.docker.internal:38891"
networks:
cluster_network:
ipv4_address: 172.29.1.3
networks:
cluster_network:
ipam:
driver: default
config:
- subnet: 172.29.0.0/16