Ser2net

Dockerfile

---

FROM ubuntu:xenial
#MAINTAINER Stephen McNamara

ENV TZ America/Regina

RUN apt-get update \
    && apt-get install -y ser2net \
    && rm -rf /var/lib/apt/lists/*

ADD ser2net.conf /etc/ser2net.conf

EXPOSE 3333

CMD /usr/sbin/ser2net -d -u

ser2net.conf

BANNER:banner:\r\nser2net port \p device \d [\s] (Debian GNU/Linux)\r\n\r\n
3333:raw:0:/dev/ttyUSB0:38400 8DATABITS NONE 1STOPBIT

---

ser2net:
   build: .
   devices:
     - "/dev/ttyS0:/dev/ttyUSB0"
   ports:
     - "3333:3333"