forked from kubernetes-sigs/kube-scheduler-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (36 loc) · 1022 Bytes
/
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
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
ports:
- "1212:1212"
restart: always
tty: true
networks:
- simulator-internal-network
simulator-frontend:
image: simulator-frontend
restart: always
container_name: simulator-frontend
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