-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.32 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
44
45
46
47
48
49
---
version: "3.8"
services:
batfish:
container_name: "batfish"
network_mode: "host"
image: "batfish/batfish:latest"
ports:
- "9996:9996"
- "9997:9997"
spauto:
container_name: "spauto"
network_mode: "host"
build:
context: "."
target: "spauto"
volumes:
- ".:/usr/src/app"
depends_on:
- "batfish"
clab:
image: ghcr.io/srl-labs/clab
network_mode: host
working_dir: "/src"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/var/run/netns:/var/run/netns"
- "/etc/hosts:/etc/hosts"
- "./:/src"
- "./clab-spauto-clab.yml:/src/clab-spauto-clab.yml"
pid: "host"
command: "containerlab deploy -t spauto-clab.yml"
# If you want to destroy the lab, ovveride the command while executing docker-compose service
# docker-compose run clab containerlab destroy -t spauto-topology.yml
# Redeploy
# docker-compose run clab containerlab deploy -t spauto-topology.yml --reconfigure
privileged: true
tty: true
nso:
# docker-compose up -d nso // Accessible via web w/ neds (iosxr/xe)
container_name: "nso"
image: "h4ndzdatm0ld/nso-spauto:5.5-neds"
ports:
- "2024:22"
environment:
- "ADMIN_PASSWORD=admin"
- "HTTP_ENABLE=true"
- "HTTPS_ENABLE=true"
tty: true