forked from tbotnz/netpalm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ci.yml
64 lines (56 loc) · 1.61 KB
/
docker-compose.ci.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.7"
services:
netpalm-controller:
build:
context: .
dockerfile: ./dockerfiles/netpalm_controller_dockerfile
environment:
- NET_TEXTFSM=/usr/local/lib/python3.8/site-packages/ntc_templates/templates/
- NETPALM_CONFIG=/code/config/config.json
- NETPALM_LOG_CONFIG_FILENAME=/code/config/log-config.yml
ports:
- "9000:9000"
networks:
- "netpalm-network"
depends_on:
- redis
- cisgo
worker-pinned:
image: netpalm_netpalm-controller
command: python3 worker.py pinned
environment:
- NET_TEXTFSM=/usr/local/lib/python3.8/site-packages/ntc_templates/templates/
- NETPALM_CONFIG=/code/config/config.json
- NETPALM_LOG_CONFIG_FILENAME=/code/config/log-config.yml
depends_on:
- redis
networks:
- "netpalm-network"
# deploy:
# replicas: 2
worker-fifo:
image: netpalm_netpalm-controller
command: python3 worker.py fifo
environment:
- NET_TEXTFSM=/usr/local/lib/python3.8/site-packages/ntc_templates/templates/
- NETPALM_CONFIG=/code/config/config.json
- NETPALM_LOG_CONFIG_FILENAME=/code/config/log-config.yml
depends_on:
- redis
networks:
- "netpalm-network"
redis:
build:
context: .
dockerfile: ./dockerfiles/netpalm_redis_dockerfile
networks:
- "netpalm-network"
cisgo:
image: apcela/cisshgo:v0.1.1
ports:
- "10005:10005" # one port just for convenience in case you need to ssh from outside for some reason
networks:
- "netpalm-network"
networks:
netpalm-network:
name: "netpalm-network"