forked from opiproject/sztp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
47 lines (41 loc) · 1 KB
/
docker-compose.test.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
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2022-2023 Dell Inc, or its subsidiaries.
---
version: '3.7'
services:
nmap:
image: docker.io/instrumentisto/nmap:7.94
networks:
- opi
command: --script broadcast-dhcp-discover
nmapmdnsclient:
image: docker.io/instrumentisto/nmap:7.94
networks:
- opi
command: --script=dns-service-discovery -p 5353 avahi
client:
image: docker.io/modularitycontainers/dhcp-client:latest
cap_add:
- CAP_NET_RAW
volumes:
- dhcp-leases-folder:/var/lib/dhclient/
- ./dhcp/dhclient.conf:/etc/dhcp/dhclient.conf
networks:
- opi
command: dhclient -d -v
agent:
image: ghcr.io/opiproject/opi-sztp-client:main
build:
context: sztp-agent
depends_on:
bootstrap:
condition: service_healthy
redirecter:
condition: service_healthy
volumes_from:
- client
networks:
- opi
command: ['/opi-sztp-agent', 'daemon']
volumes:
dhcp-leases-folder: