10.2 docker-compose.yml

Compose stack with frame-processor (built from Dockerfile, frames.json
bind-mounted, /data/images on a named volume) and an eclipse-mosquitto
broker configured for anonymous access on a shared bridge network.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-07 16:13:01 +02:00
parent 10188b41af
commit a886f123a7
3 changed files with 33 additions and 1 deletions

View File

@@ -224,7 +224,7 @@ Each type lives in `src/FrameProcessor/Domain/`. Tests in `tests/FrameProcessor.
- Expose 8080; create `/data/images`. - Expose 8080; create `/data/images`.
- Non-root user. - Non-root user.
### [ ] 10.2 `docker-compose.yml` ### [x] 10.2 `docker-compose.yml`
- `frame-processor` service (build from Dockerfile, mount `frames.json` and `/data/images`). - `frame-processor` service (build from Dockerfile, mount `frames.json` and `/data/images`).
- `mosquitto` broker with anonymous access on the local network. - `mosquitto` broker with anonymous access on the local network.
- Single network so the service can reach `mosquitto:1883`. - Single network so the service can reach `mosquitto:1883`.

29
docker-compose.yml Normal file
View File

@@ -0,0 +1,29 @@
services:
frame-processor:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
volumes:
- ./frames.json:/app/frames.json:ro
- frame-images:/data/images
depends_on:
- mosquitto
networks:
- frame-net
mosquitto:
image: eclipse-mosquitto:2
ports:
- "1883:1883"
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
networks:
- frame-net
volumes:
frame-images:
networks:
frame-net:

3
mosquitto/mosquitto.conf Normal file
View File

@@ -0,0 +1,3 @@
listener 1883
allow_anonymous true
persistence false