Skip to content

Commit

Permalink
Update docker
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Blavka <[email protected]>
  • Loading branch information
blavka committed Jul 22, 2024
1 parent 4f56772 commit d0d1c57
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-l
FROM base
COPY --from=prod-deps /app/node_modules /app/node_modules
COPY ./src ./src
COPY ./config ./config

EXPOSE 5000/udp

Expand Down
23 changes: 23 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '3.6'

services:

mqtt-broker:
image: eclipse-mosquitto
command: ["mosquitto", "-c", "/mosquitto-no-auth.conf"]
ports:
- "1883:1883"

flot-server:
build: .
restart: unless-stopped
environment:
LOG_LEVEL: debug
LOG_PRETTY: 1
MQTT_BROKER_URL: mqtt://mqtt-broker

ports:
- "5000:5000/udp"
depends_on:
- mqtt-broker

7 changes: 4 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ services:
- "1883:1883"

flot-server:
build: .
image: hardwario/udpserver-with-cbor-decoder:v1.1.0
restart: unless-stopped
environment:
LOG_LEVEL: debug
LOG_PRETTY: 1
MQTT_BROKER_URL: mqtt://mqtt-broker

volumes:
- ./config:/app/config
ports:
- "5000:5000"
- "5000:5000/udp"
depends_on:
- mqtt-broker

0 comments on commit d0d1c57

Please sign in to comment.