21 lines
611 B
YAML
21 lines
611 B
YAML
# S7 integration-test fixture — python-snap7 server.
|
|
#
|
|
# One service per profile (only s7_1500 ships today; add S7-1200 / S7-300
|
|
# as new profile JSONs drop into profiles/). All bind :1102 on the host;
|
|
# run one at a time.
|
|
#
|
|
# Usage:
|
|
# docker compose --profile s7_1500 up
|
|
services:
|
|
s7_1500:
|
|
profiles: ["s7_1500"]
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: otopcua-python-snap7:1.0
|
|
container_name: otopcua-python-snap7-s7_1500
|
|
restart: "no"
|
|
ports:
|
|
- "1102:1102"
|
|
command: ["python", "-u", "/fixtures/server.py", "/fixtures/s7_1500.json", "--port", "1102"]
|