-
Notifications
You must be signed in to change notification settings - Fork 57
/
docker-compose.dev.yml
83 lines (74 loc) · 2.59 KB
/
docker-compose.dev.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: "3.7"
services:
controller:
build:
context: .
dockerfile: ./dockerfiles/netpalm_controller_dockerfile
command: gunicorn -c gunicorn.conf.py netpalm.netpalm_controller:app
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
# volumes:
# - .:/code
ports:
- "9000:9000"
networks:
- "netpalm-network"
depends_on:
- redis
- cisgo
second-ctrlr: # using --scale doesn't work on controllers because they all want to own port 9000
image: netpalm_controller
command: gunicorn -c gunicorn.conf.py netpalm.netpalm_controller:app
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
# volumes:
# - .:/code
ports:
- "9001:9000"
networks:
- "netpalm-network"
depends_on:
- redis
worker-pinned:
image: 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"
worker-fifo:
image: 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"
restart: always
cisgo:
image: apcela/cisshgo:v0.1.0
# dockerfile: Dockerfile
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"