OPC UA server simulator in Docker

Cowpoke is a free OPC UA server simulator that runs in one Docker container. You start it from a script or a CI job; there is no Windows installer.

docker run -d -p 8080:8080 -p 4840:4840 -e COWPOKE_ADMIN_PASSWORD=change-me ohmsteadhq/cowpoke

Define the server and its tags in the web UI at http://localhost:8080, or as YAML:

services:
  - id: boiler
    kind: opcua
    mode: server
    settings: { port: 4840, hostname: localhost }
    tags:
      - { name: Boiler1.SteamPressure, datatype: float64, units: bar, simulate: { kind: walk, min: 7.5, max: 9.5, step: 0.05 } }
      - { name: Boiler1.State, datatype: string, simulate: { kind: sequence, interval_ms: 30000, values: [Purge, Ignition, Firing, Standby] } }
      - { name: Boiler1.PressureSP, datatype: float64, units: bar, initial: 8.5 }

Your client connects to opc.tcp://<host>:4840/ and finds the tags under ns=2;s=<name>.

Security like a real server

Built for automated testing

Beyond OPC UA

The same container simulates Modbus TCP, EtherNet/IP (Logix), Siemens S7, MQTT with Sparkplug B and IO-Link. It also records history, raises alarms and watches the traffic on the wire.

Compared with desktop simulators

Desktop simulators such as Prosys and Integration Objects are mature and cover more of the OPC UA model: events, methods, history access. Cowpoke's OPC UA server serves variables only, and its client polls; it does not subscribe. If you need those parts of the model, use a desktop simulator. Pick Cowpoke when you want the server in Docker, driven from code, next to the other protocols on your floor.

More from Cowpoke: Modbus TCP simulator · S7 PLC simulator · Neuron alternative.

Questions about your plant's protocols?