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:
@@ -224,7 +224,7 @@ Each type lives in `src/FrameProcessor/Domain/`. Tests in `tests/FrameProcessor.
|
||||
- Expose 8080; create `/data/images`.
|
||||
- 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`).
|
||||
- `mosquitto` broker with anonymous access on the local network.
|
||||
- Single network so the service can reach `mosquitto:1883`.
|
||||
|
||||
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal 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
3
mosquitto/mosquitto.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
listener 1883
|
||||
allow_anonymous true
|
||||
persistence false
|
||||
Reference in New Issue
Block a user