@@ -44,6 +44,34 @@ services:
|
||||
retries: 10
|
||||
start_period: 10s
|
||||
|
||||
# opc-plc-secondary — second opc-plc instance for upstream-redundancy testing
|
||||
# (PR-14, issue #286). Listens on a different port so it can run alongside the
|
||||
# primary; the integration test suite drives a ServiceLevel drop on the primary
|
||||
# and asserts the driver fails over onto the secondary's session. Both
|
||||
# instances are independent — this isn't a real OPC UA redundant pair (there's
|
||||
# no shared address space), but the failover-decision wiring is what we need
|
||||
# to validate end-to-end.
|
||||
opc-plc-secondary:
|
||||
image: mcr.microsoft.com/iotedge/opc-plc:2.14.10
|
||||
container_name: otopcua-opc-plc-secondary
|
||||
restart: "no"
|
||||
ports:
|
||||
- "50002:50000"
|
||||
command:
|
||||
# Same flags as the primary so the test session-shape is identical. --pn
|
||||
# stays at 50000 inside the container; the host-side port-map above puts
|
||||
# it at 50002 for the test runner.
|
||||
- "--pn=50000"
|
||||
- "--ut"
|
||||
- "--aa"
|
||||
- "--alm"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "netstat -an | grep -q ':50000.*LISTEN' || exit 1"]
|
||||
interval: 5s
|
||||
timeout: 2s
|
||||
retries: 10
|
||||
start_period: 10s
|
||||
|
||||
# opc-plc-rc — reverse-connect (server-initiated) variant. The simulator
|
||||
# acts as the OPC UA server but, unlike the regular service above, it dials
|
||||
# OUT to the client's listener URL instead of accepting an inbound dial.
|
||||
|
||||
Reference in New Issue
Block a user