-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
103 lines (98 loc) · 2.95 KB
/
Copy pathdocker-compose.yml
File metadata and controls
103 lines (98 loc) · 2.95 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
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
services:
# Local development only. Production certificates must come from the deployment platform's PKI.
cert-gen:
build:
context: ./
dockerfile: scripts/certificates/Dockerfile
volumes:
- "./certs:/certs"
network_mode: none
esdb-node1:
build:
context: ./
secrets:
- nuget_auth_token
env_file:
- shared.env
environment:
- EVENTSTORE_GOSSIP_SEED=172.30.240.12:2113,172.30.240.13:2113
- EVENTSTORE_REPLICATION_IP=172.30.240.11
- EVENTSTORE_CERTIFICATE_FILE=/etc/eventstore/certs/node/node.crt
- EVENTSTORE_CERTIFICATE_PRIVATE_KEY_FILE=/etc/eventstore/certs/node/node.key
- EVENTSTORE_ADVERTISE_HOST_TO_CLIENT_AS=127.0.0.1
- EVENTSTORE_ADVERTISE_NODE_PORT_TO_CLIENT_AS=2111
ports:
- 2111:2113
networks:
clusternetwork:
ipv4_address: 172.30.240.11
volumes:
- ./certs/ca:/etc/eventstore/certs/ca:ro
- ./certs/node1:/etc/eventstore/certs/node:ro
restart: unless-stopped
depends_on:
cert-gen:
condition: service_completed_successfully
esdb-node2:
build:
context: ./
secrets:
- nuget_auth_token
env_file:
- shared.env
environment:
- EVENTSTORE_GOSSIP_SEED=172.30.240.11:2113,172.30.240.13:2113
- EVENTSTORE_REPLICATION_IP=172.30.240.12
- EVENTSTORE_CERTIFICATE_FILE=/etc/eventstore/certs/node/node.crt
- EVENTSTORE_CERTIFICATE_PRIVATE_KEY_FILE=/etc/eventstore/certs/node/node.key
- EVENTSTORE_ADVERTISE_HOST_TO_CLIENT_AS=127.0.0.1
- EVENTSTORE_ADVERTISE_NODE_PORT_TO_CLIENT_AS=2112
ports:
- 2112:2113
networks:
clusternetwork:
ipv4_address: 172.30.240.12
volumes:
- ./certs/ca:/etc/eventstore/certs/ca:ro
- ./certs/node2:/etc/eventstore/certs/node:ro
restart: unless-stopped
depends_on:
cert-gen:
condition: service_completed_successfully
esdb-node3:
build:
context: ./
secrets:
- nuget_auth_token
env_file:
- shared.env
environment:
- EVENTSTORE_GOSSIP_SEED=172.30.240.11:2113,172.30.240.12:2113
- EVENTSTORE_REPLICATION_IP=172.30.240.13
- EVENTSTORE_CERTIFICATE_FILE=/etc/eventstore/certs/node/node.crt
- EVENTSTORE_CERTIFICATE_PRIVATE_KEY_FILE=/etc/eventstore/certs/node/node.key
- EVENTSTORE_ADVERTISE_HOST_TO_CLIENT_AS=127.0.0.1
- EVENTSTORE_ADVERTISE_NODE_PORT_TO_CLIENT_AS=2113
ports:
- 2113:2113
networks:
clusternetwork:
ipv4_address: 172.30.240.13
volumes:
- ./certs/ca:/etc/eventstore/certs/ca:ro
- ./certs/node3:/etc/eventstore/certs/node:ro
restart: unless-stopped
depends_on:
cert-gen:
condition: service_completed_successfully
networks:
clusternetwork:
name: eventstoredb.local
driver: bridge
ipam:
driver: default
config:
- subnet: 172.30.240.0/24
secrets:
nuget_auth_token:
environment: NUGET_AUTH_TOKEN