Skip to content

Commit a082fe8

Browse files
committed
improve docker compose for testing
1 parent e68b0b9 commit a082fe8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docker-compose.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
version: "3.9" # optional since v1.27.0
1+
version: "3.9"
22
services:
33
kubero:
44
container_name: "kubero"
55
build: .
6-
#command: ["tail", "-f", "/dev/null"]
6+
#command: ["tail", "-f", "/dev/null"] # for debugging
77
env_file:
88
- .env
9+
environment:
10+
- KUBERO_CONTEXT=kind-kubero-001 # make sure you use the context name from your mounted kubeconfig
911
ports:
1012
- "8000:2000"
1113
extra_hosts:
12-
- "kubero-control-plane:192.168.65.2"
14+
- "kubero-001-control-plane:192.168.65.2" # make sure you use the container name from your local kind cluster control plane
1315
volumes:
1416
#- .:/app
15-
- ./kubeconfig-docker:/app/server/kubeconfig
17+
- ./kubeconfig-docker:/app/server/kubeconfig # change the port 6443 to the outside port of your local kind cluster control plane
1618
- ./config.yaml:/app/server/config.yaml
1719
gitea:
1820
image: gitea/gitea:latest

0 commit comments

Comments
 (0)