-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
executable file
·54 lines (50 loc) · 1.31 KB
/
compose.yaml
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
services:
NSO-1:
image: mod-nso-prod:$VER
container_name: nso1
profiles:
- prod
environment:
- EXTRA_ARGS=--with-package-reload
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=admin
networks:
NSO-net:
ipv4_address: 10.0.0.2
ports:
- "2023:2024"
- "8889:8888"
- "8081:8080"
volumes:
- type: bind
source: './NSO-vol/NSO1'
target: '/nso'
- type: bind
source: './NSO-log-vol/NSO1'
target: '/log'
healthcheck:
test: ncs_cmd -c "wait-start 2"
interval: 5s
retries: 5
start_period: 10s
timeout: 10s
BUILD-NSO-PKGS:
image: mod-nso-dev:$VER
container_name: nso-dev
network_mode: none
profiles:
- dev
volumes:
- type: bind
source: './NSO-vol/NSO1'
target: '/nso1'
- type: bind
source: './NSO-log-vol/NSO1'
target: '/log_nso1'
networks:
NSO-net:
driver: bridge
ipam:
config:
- subnet: 10.0.0.0/16
gateway: 10.0.0.1