-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (57 loc) · 1.26 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
version: '3.6'
services:
registry:
container_name: registry
image: registry:2.8.1
expose:
- "80"
networks:
default:
ipv4_address: 10.254.254.253
volumes:
- "registry:/var/lib/registry:rw"
- "./kind/config/registry.yml:/etc/docker/registry/config.yml:ro"
kubernetes:
container_name: kubernetes
image: local/kind
build:
context: ./kind
dockerfile: ./Dockerfile
args:
KIND_VERSION: 0.15.0
KUBERNETES_VERSION: 1.25.0
env_file:
- env.ini
privileged: true
entrypoint:
- dockerd-entrypoint.sh
ports:
# Port for Kubernetes API
- "6443:6443"
# Port for Kubernetes dashboard
- "8008:30080"
- "30000:30000"
extra_hosts:
- "registry:10.254.254.253"
- "kubernetes:127.0.0.1"
- "kind-control-plane:127.0.0.1"
volumes:
- dind:/var/lib/docker:rw
- ./kind/config/kubeconfig:/root/.kube/config:rw
- ./kind/config/daemon.json:/etc/docker/daemon.json:ro
- .:/mnt/kubernetes/sidecar:rw
stop_grace_period: 1s
depends_on:
- registry
networks:
default:
ipam:
config:
- subnet: 10.254.254.0/24
volumes:
dind:
### Cache of downloaded kind images
###
name: dind
registry:
name: registry