-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
47 lines (47 loc) · 1.42 KB
/
docker-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
services:
PROD:
image: mod-nso-prod:${VER}
container_name: nso_prod
network_mode: none
profiles:
- prod
environment:
- EXTRA_ARGS=--with-package-reload
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=admin
ports:
- "2023:2024"
- "8889:8888"
volumes:
- type: bind
source: './NSO-vol/nso/etc'
target: '/nso/etc'
- type: bind
source: './NSO-vol/nso/run'
target: '/nso/run'
- type: bind
source: './NSO-log'
target: '/logs'
- type: bind
source: './NSO-vol/nso-config/ncs.conf'
target: '/etc/ncs/ncs.conf'
healthcheck:
test: ncs_cmd -c "wait-start 2"
interval: 5s
retries: 5
start_period: 10s
timeout: 10s
BUILD:
image: mod-nso-dev:${VER}
container_name: nso-build
network_mode: none
profiles:
- build
volumes:
- type: bind
source: './NSO-vol/nso/run/packages'
target: '/packages'
- type: bind
source: './NSO-log/'
target: '/logs'
command: /bin/bash -c "make all -C /packages/ && sleep infinity"