-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.12 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
version: '3.2'
services:
controller:
image: stono/kconmon:${VERSION:-latest}
build:
context: '.'
args:
NODEJS_VERSION: 14.6.0
command: 'controller'
environment:
PORT: '80' # Run on port 80 locally in docker-compose to replicate kubernetes service object port magenting
hostname: 'controller'
domainname: 'kconmon.svc.cluster.local'
networks:
fake-kubernetes:
aliases:
- 'controller.kconmon.svc.cluster.local'
- 'controller.kconmon'
- 'controller'
ports:
- '8080:80'
volumes:
- ~/.config:/home/nonroot/.config:ro
- ~/.kube:/home/nonroot/.kube:ro
agent:
image: stono/kconmon:${VERSION:-latest}
command: 'agent'
environment:
PORT: '80' # Run on port 80 locally in docker-compose to replicate kubernetes service object port magenting
hostname: 'agent'
domainname: 'kconmon.svc.cluster.local'
networks:
fake-kubernetes:
aliases:
- 'agent.kconmon.svc.cluster.local'
- 'agent.kconmon'
- 'agent'
ports:
- '8080:80'
networks:
fake-kubernetes: