-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (72 loc) · 1.79 KB
/
docker-compose.yml
File metadata and controls
75 lines (72 loc) · 1.79 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
services:
node1:
image: ghcr.io/litesql/ha:latest
volumes:
- ./testdata:/etc/nats
- node1_data:/data
ports:
- "3306:3306"
- "4222:4222"
- "5432:5432"
- "8080:8080"
environment:
- HA_SNAPSHOT_INTERVAL=60s
- HA_NAME=node1
- HA_ARGS=file:/data/db.sqlite?_journal=WAL&_timeout=5000&_sync=NORMAL
- HA_CONCURRENT_QUERIES=50
- HA_NATS_CONFIG=/etc/nats/node1.cfg
- HA_REPLICAS=1
- HA_PG_PORT=5432
- HA_MYSQL_PORT=3306
- HA_LEADER_ADDR=node1:8080
- HA_GRPC_INSECURE=true
- HA_LOG_LEVEL=debug
node2:
image: ghcr.io/litesql/ha:latest
volumes:
- ./testdata:/etc/nats
- node2_data:/data
ports:
- "3307:3306"
- "4223:4222"
- "5433:5432"
- "8081:8080"
environment:
- HA_NAME=node2
- HA_ARGS=file:/data/db.sqlite?_journal=WAL&_timeout=5000&_sync=NORMAL
- HA_CONCURRENT_QUERIES=50
- HA_NATS_CONFIG=/etc/nats/node2.cfg
- HA_REPLICAS=1
- HA_PG_PORT=5432
- HA_MYSQL_PORT=3306
- HA_LEADER_ADDR=node2:8080
- HA_GRPC_INSECURE=true
- HA_LOG_LEVEL=debug
node3:
image: ghcr.io/litesql/ha:latest
volumes:
- ./testdata:/etc/nats
- node3_data:/data
ports:
- "3308:3306"
- "4224:4222"
- "5434:5432"
- "8082:8080"
environment:
- HA_NAME=node3
- HA_ARGS=file:/data/db.sqlite?_journal=WAL&_timeout=5000&_sync=NORMAL
- HA_CONCURRENT_QUERIES=50
- HA_NATS_CONFIG=/etc/nats/node3.cfg
- HA_REPLICAS=1
- HA_PG_PORT=5432
- HA_MYSQL_PORT=3306
- HA_LEADER_ADDR=node3:8080
- HA_GRPC_INSECURE=true
- HA_LOG_LEVEL=debug
volumes:
node1_data:
driver: local
node2_data:
driver: local
node3_data:
driver: local