-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
66 lines (64 loc) · 2.1 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
66 lines (64 loc) · 2.1 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
networks:
container-network:
name: container-network
ipam:
driver: default
config:
- subnet: 192.168.20.0/24
gateway: 192.168.20.1
services:
mosquitto:
image: eclipse-mosquitto:latest
container_name: mosquitto
hostname: mosquitto
ports:
- "1883:1883"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "mosquitto_sub -h localhost -p 1883 -t '$$SYS/broker/version' -C 1 -W 5 >/dev/null 2>&1"]
start_period: 5s
interval: 10s
timeout: 5s
retries: 3
volumes:
- ./simple-mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
networks:
container-network:
ipv4_address: 192.168.20.2
tc31-xar-base:
image: tc31-xar-base:latest
container_name: tc31-xar-base
hostname: tc31-xar-base
restart: unless-stopped
healthcheck:
test: ["CMD", "tcadstool", "127.0.0.1.1.1", "state"]
start_period: 5s
interval: 10s
retries: 3
depends_on:
- mosquitto
privileged: true
volumes:
- /dev/hugepages:/dev/hugepages:rw
networks:
container-network:
ipv4_address: 192.168.20.3
# Use PCI_DEVICES as environment variables to specify the Ethernet
# controllers which can be used by the TwinCAT runtime for real-time
# ethernet communication.
# If PCI_DEVICES is not provided at all, TwinCAT will probe all
# available Ethernet controllers of the host for real-time ethernet communication.
# If PCI_DEVICES is set to NONE, the TwinCAT runtime won't use probe
# any PCI Ethernet controller for real-time ethernet communicaion.
# Set PCI_DEVICES to a space seperated list of PCI slot address
# to explicitly set Ethernet controllers for real-time ethernet communication.
# Run `sudo TcRteInstall -l` on the host to get a list of available
# Ethernet controllers and their PCI slot address
# Examples:
# #- PCI_DEVICES=NONE
# - PCI_DEVICES=NONE
# - PCI_DEVICES=0000:02:00.0
# - PCI_DEVICES=0000:04:00.0 0000:03:00.0
environment:
#- PCI_DEVICES=NONE
- AMS_NETID=15.15.15.15.1.1