-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
59 lines (59 loc) · 1.44 KB
/
docker-compose.yaml
File metadata and controls
59 lines (59 loc) · 1.44 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
---
version: '3'
services:
mosquitto:
container_name: mosquitto
image: eclipse-mosquitto:2.0.14
volumes: [./tests/mosquitto/mosquitto.conf:/mqtt/config/mosquitto.conf]
ports: [1883:1883, 9001:9001]
command: [mosquitto, -c, /mqtt/config/mosquitto.conf]
restart: always
logging:
options:
max-size: 10m
pymodbus:
container_name: pymodbus
image: ghcr.io/evergenenergy/pymodbus-image:main
command:
- pymodbus.server
- --host
- 0.0.0.0
- --web-port
- '8080'
- --verbose
- --no-repl
- run
- --modbus-server
- tcp
- --framer
- socket
- --unit-id
- '1'
- --unit-id
- '2'
- --unit-id
- '3'
- --unit-id
- '4'
- --random
- '0'
- --modbus-port
- '5020'
- --modbus-config
- /pymodbus/config.json
volumes: [./tests/modbus/config.json:/pymodbus/config.json]
ports: [5020:5020, 8080:8080]
restart: on-failure
logging:
options:
max-size: 10m
command_handler:
container_name: command_handler_local
build:
context: .
dockerfile: Dockerfile # Replace with the actual name of your Dockerfile if different
environment: [CONFIGURATION_PATH=/config/configuration.yaml]
volumes:
- ./tests/end-to-end/configuration.yaml:/config/configuration.yaml
links: [mosquitto, pymodbus]
depends_on: [mosquitto, pymodbus]