1

Updating how docker containers are handled

This commit is contained in:
Evan Pratten 2024-11-21 15:16:20 -05:00
parent c940c0f168
commit b84d05e292
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,5 @@
FROM python:3.13
ENV MODE=cw
ENV MQTT_HOST=
COPY ./scripts/rbn-to-mqtt /rbn-to-mqtt
CMD ["python", "/rbn-to-mqtt", "${MODE}", "${MQTT_HOST}"]

View File

@ -0,0 +1,20 @@
services:
rbn_cw_to_mqtt:
build:
context: ../..
dockerfile: docker/containers/rbn-to-mqtt.dockerfile
restart: unless-stopped
env_file: .env
environment:
- Mode=cw
- MQTT_HOST=${MQTT_HOST}
rbn_ft8_to_mqtt:
build:
context: ../..
dockerfile: docker/containers/rbn-to-mqtt.dockerfile
restart: unless-stopped
env_file: .env
environment:
- Mode=ft8
- MQTT_HOST=${MQTT_HOST}