forked from kubernetes-sigs/kube-scheduler-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (41 loc) · 1.11 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
version: "3.7"
services:
simulator-server:
image: simulator-server
container_name: simulator-server
environment:
- PORT=1212
- KUBE_SCHEDULER_SIMULATOR_ETCD_URL=http://simulator-etcd:2379
- FRONTEND_URL=http://localhost:3000
- KUBE_API_HOST=0.0.0.0
- KUBE_API_PORT=3131
ports:
- "1212:1212"
- "3131:3131"
restart: always
tty: true
networks:
- simulator-internal-network
simulator-frontend:
image: simulator-frontend
restart: always
container_name: simulator-frontend
environment:
- HOST=0.0.0.0
ports:
- "3000:3000"
tty: true
simulator-etcd:
image: quay.io/coreos/etcd:v3.4.0
container_name: simulator-etcd
restart: always
volumes:
- simulator-etcd-data:/var/lib/etcd
command: etcd --advertise-client-urls http://simulator-etcd:2379 --data-dir /var/lib/etcd --listen-client-urls http://0.0.0.0:2379 --initial-cluster-state new --initial-cluster-token tkn
networks:
- simulator-internal-network
volumes:
simulator-etcd-data:
networks:
simulator-internal-network:
driver: bridge