forked from tbotnz/netpalm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·60 lines (53 loc) · 1.6 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
50
51
52
53
54
55
56
57
58
59
60
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
restart: always
netpalm-worker-pinned:
build:
context: .
dockerfile: ./dockerfiles/netpalm_pinned_worker_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
depends_on:
- redis
networks:
- "netpalm-network"
restart: always
netpalm-worker-fifo:
build:
context: .
dockerfile: ./dockerfiles/netpalm_fifo_worker_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
depends_on:
- redis
networks:
- "netpalm-network"
restart: always
redis:
build:
context: .
dockerfile: ./dockerfiles/netpalm_redis_dockerfile
networks:
- "netpalm-network"
restart: always
networks:
netpalm-network:
name: "netpalm-network"