-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (77 loc) · 1.89 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
version: "3"
services:
charm1:
image: charmcli/charm:v0.11.0
container_name: charm1
volumes:
- ./tmp/cluster/charm1:/data
restart: unless-stopped
ports:
- 4001:35353 # ssh
- 4002:35354 # http
- 4003:35356 # health
charm2:
image: charmcli/charm:v0.11.0
container_name: charm2
volumes:
- ./tmp/cluster/charm2:/data
restart: unless-stopped
ports:
- 5001:35353 # ssh
- 5002:35354 # http
- 5003:35356 # health
command: serve
charm3:
image: charmcli/charm:v0.11.0
container_name: charm3
volumes:
- ./tmp/cluster/charm3:/data
restart: unless-stopped
ports:
- 6001:35353 # ssh
- 6002:35354 # http
- 6003:35356 # health
command: serve
cring:
image: ghcr.io/rubiojr/charmedring:latest
depends_on:
- charm1
- charm2
- charm3
environment:
- AWS_ACCESS_KEY_ID=minio
- AWS_SECRET_ACCESS_KEY=minio123
container_name: cring
hostname: cring
restart: unless-stopped
ports:
- 35354:35354
- 35353:35353
command: serve --host http://charm1:35354 --host http://charm2:35354 --host http://charm3:35354 --debug --backup-url http://minio:9000 --backup-bucket charmedring
client:
image: charmcli/charm:v0.11.0
container_name: client
depends_on:
- cring
volumes:
- ./tmp/client:/root/.local/share/charm
environment:
HOME: /root
command: -v
minio:
image: quay.io/minio/minio:RELEASE.2021-12-29T06-49-06Z
command: server --console-address ":9001" /data
ports:
- 9000:9000
- 9001:9001
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
hostname: minio1
volumes:
- ./tmp/minio:/data