-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
34 lines (33 loc) · 1.35 KB
/
docker-compose.yml
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
version: "3"
services:
devenv:
build: ./
image: serial2mqttgateway:latest
privileged: true
volumes:
- ${GATEWAY_CONFIG}:/config/config.cfg
- ${HARDWARE_WHITELIST}:/config/hardware-whitelist.txt
- ${SERIALPORT_BLACKLIST}:/config/port-blacklist.txt
- ${MQTT_SERVER_CERT}:/config/cert/mosquitto.org.crt
- ${MQTT_CLIENT_CERT}:/config/cert/client.crt
- ${MQTT_CLIENT_KEY}:/config/cert/client.key
# - ${LOG_PATH}:/logs
stdin_open: true
tty: true
entrypoint: /bin/bash
daemon:
build: ./
image: serial2mqttgateway:latest
privileged: true
volumes:
- ${GATEWAY_CONFIG}:/config/config.cfg
- ${HARDWARE_WHITELIST}:/config/hardware-whitelist.txt
- ${SERIALPORT_BLACKLIST}:/config/port-blacklist.txt
- ${MQTT_SERVER_CERT}:/config/cert/mosquitto.org.crt
- ${MQTT_CLIENT_CERT}:/config/cert/client.crt
- ${MQTT_CLIENT_KEY}:/config/cert/client.key
# - ${LOG_PATH}:/logs
stdin_open: true
tty: true
restart: unless-stopped
entrypoint: /bin/bash -c "/repos/Serial2MqttGateway/bin/serial2mqtt-gateway /config/config.cfg /config/hardware-whitelist.txt /config/port-blacklist.txt /logs"