-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
35 lines (35 loc) · 888 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
35 lines (35 loc) · 888 Bytes
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
version: "3"
services:
kubernetes:
networks:
testnet:
ipv4_address: 172.16.238.2
image: "rancher/k3s:${K3S_VERSION:-latest}"
command:
- server
tmpfs:
- /run
- /var/run
privileged: true
environment:
- K3S_TOKEN=secret
- K3S_KUBECONFIG_OUTPUT=/output/kubeconfig.yaml
- K3S_KUBECONFIG_MODE=666
volumes:
- .:/output
- ./test-registries.yaml:/etc/rancher/k3s/registries.yaml
ports:
- 6443:6443
registry:
networks:
testnet:
ipv4_address: 172.16.238.3
image: registry:latest
ports:
- 5180:5000
networks:
testnet:
ipam:
driver: default
config:
- subnet: "172.16.238.0/24"