-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
157 lines (148 loc) · 3.88 KB
/
docker-compose.yml
File metadata and controls
157 lines (148 loc) · 3.88 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
services:
opcua-server:
image: mcr.microsoft.com/iotedge/opc-plc:latest
container_name: oibus_opcua-plc
hostname: opcua-server
ports:
- "50000:50000"
volumes:
- ./docker/opcua/nodes_config.json:/app/nodes_config.json
- ./docker/opcua/pki:/app/pki
command:
- --nodesfile=/app/nodes_config.json
- --autoaccept
- --disableanonymousauth
- --adminuser=admin
- --adminpassword=${OPCUA_ADMIN_PASSWORD:-pass}
- --defaultuser=oibus
- --defaultpassword=${OPCUA_DEFAULT_PASSWORD:-pass}
environment:
- OPCUA_SERVER_PORT=50000
networks:
- oibus-network
restart: unless-stopped
modbus-server:
image: oitc/modbus-server
container_name: oibus_modbus-server
ports:
- "5020:5020"
volumes:
- ./docker/modbus/server_config.json:/server_config.json
command: -f /server_config.json
networks:
- oibus-network
restart: unless-stopped
mqtt-broker:
image: eclipse-mosquitto
container_name: oibus_mqtt-broker
ports:
- "1883:1883"
- "9001:9001" # WebSocket support
volumes:
- ./docker/mosquitto/config:/mosquitto/config
- ./docker/mosquitto/data:/mosquitto/data
- ./docker/mosquitto/log:/mosquitto/log
- ./docker/mosquitto/entrypoint.sh:/entrypoint.sh
environment:
MQTT_USER: oibus
MQTT_PASSWORD: ${MQTT_PASSWORD:-pass}
entrypoint: /entrypoint.sh
command: mosquitto -c /mosquitto/config/mosquitto.conf
networks:
- oibus-network
restart: unless-stopped
mqtt-simulator:
image: python:3.14-slim
container_name: oibus_mqtt-simulator
volumes:
- ./docker/mosquitto/mqtt_simulator.py:/app/mqtt_simulator.py
environment:
MQTT_USER: oibus
MQTT_PASSWORD: ${MQTT_PASSWORD:-pass}
MQTT_BROKER: mqtt-broker
MQTT_PORT: 1883
working_dir: /app
command: >
sh -c "pip show paho-mqtt > /dev/null 2>&1 || pip install paho-mqtt
&& python -u mqtt_simulator.py"
depends_on:
- mqtt-broker
networks:
- oibus-network
postgres:
image: postgres:latest
container_name: oibus_postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: oibus
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pass}
POSTGRES_DB: oibus-db
networks:
- oibus-network
restart: unless-stopped
oibus:
image: ghcr.io/optimistiksas/oibus:latest
container_name: oibus_runtime
ports:
- "2223:2223"
volumes:
- ./data-folder:/app/OIBus/OIBusData
networks:
- oibus-network
depends_on:
- opcua-server
restart: unless-stopped
profiles: [ "oibus" ]
nginx:
image: nginx:latest
container_name: oibus_nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./docker/nginx:/etc/nginx
- ./docker/nginx/certs:/etc/nginx/certs
environment:
- DOMAIN=${DOMAIN}
depends_on:
- oibus
networks:
- oibus-network
restart: unless-stopped
profiles: [ "oibus" ]
entrypoint: /bin/sh -c "envsubst < /etc/nginx/oibus.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
ftp-server:
image: fauria/vsftpd
container_name: oibus_ftp-server
ports:
- "20:20"
- "21:21"
- "21100-21110:21100-21110"
environment:
FTP_USER: oibus
FTP_PASS: oibuspass
PASV_ADDRESS: 127.0.0.1
PASV_MIN_PORT: 21100
PASV_MAX_PORT: 21110
volumes:
- ./docker/ftp/data:/home/vsftpd
networks:
- oibus-network
restart: unless-stopped
profiles: [ "testing" ]
sftp-server:
image: atmoz/sftp
container_name: oibus_sftp-server
ports:
- "2222:22"
command: oibus:pass:::upload
volumes:
- ./docker/sftp/data:/home/oibus/upload
networks:
- oibus-network
restart: unless-stopped
profiles: [ "testing" ]
networks:
oibus-network:
driver: bridge