This repository has been archived by the owner on Mar 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
85 lines (78 loc) · 2.24 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
version: '3.8'
services:
kanata:
container_name: kanata
restart: always
build: .
environment:
- RUST_LOG=DEBUG
depends_on:
- etcd
# - etcd0
# - etcd1
# - etcd2
volumes:
- /run/media/noel/Storage/Projects/Misc/Rust/kanata/config.yml:/opt/noel/kanata/config.yml:ro
- '~/.kube/config:/root/.kube/config'
etcd:
image: bitnami/etcd:latest
restart: always
container_name: kanata-etcd
environment:
- ALLOW_NONE_AUTHENTICATION=yes
volumes:
- etcd_data:/bitnami/etcd
# uncomment this for a etcd cluster
# etcd0:
# image: quay.io/coreos/etcd
# ports:
# - 2379
# volumes:
# - etcd0_data:/etcd_data
# command:
# - etcd
# - --name=etcd0
# - --data-dir=/etcd_data
# - --advertise-client-urls=http://etcd0:2379
# - --listen-client-urls=http://0.0.0.0:2379
# - --initial-advertise-peer-urls=http://etcd0:2379
# - --listen-peer-urls=http://0.0.0.0:2379
# - --initial-cluster=etcd0=http://etcd0:2380,http://etcd1:2380,http://etcd2:2380
# - --initial-cluster-state=new
# etcd1:
# image: quay.io/coreos/etcd
# ports:
# - 2380
# volumes:
# - etcd1_data:/etcd_data
# command:
# - etcd
# - --name=etcd0
# - --data-dir=/etcd_data
# - --advertise-client-urls=http://etcd1:2380
# - --listen-client-urls=http://0.0.0.0:2380
# - --initial-advertise-peer-urls=http://etcd1:2380
# - --listen-peer-urls=http://0.0.0.0:2380
# - --initial-cluster=etcd0=http://etcd0:2379,http://etcd1:2380,http://etcd2:2381
# - --initial-cluster-state=new
# etcd2:
# image: quay.io/coreos/etcd
# ports:
# - 2381
# volumes:
# - etcd2_data:/etcd_data
# command:
# - etcd
# - --name=etcd0
# - --data-dir=/etcd_data
# - --advertise-client-urls=http://etcd2:2381
# - --listen-client-urls=http://0.0.0.0:2381
# - --initial-advertise-peer-urls=http://etcd2:2381
# - --listen-peer-urls=http://0.0.0.0:2381
# - --initial-cluster=etcd0=http://etcd0:2379,http://etcd1:2380,http://etcd2:2381
# - --initial-cluster-state=new
volumes:
etcd_data:
# etcd0_data:
# etcd1_data:
# etcd2_data: