-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (63 loc) · 1.74 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
restheart:
image: softinstigate/restheart:latest
environment:
RHO: >
/mclient/connection-string->"mongodb://mongodb1:27017/?replicaSet=rs0";
/http-listener/host->"0.0.0.0";
volumes:
- $PWD/config/restheart.yml:/opt/restheart/etc/overrides.yml
depends_on:
mongodb1:
condition: service_healthy
ports:
- "8080:8080"
command: [ "-o", "/opt/restheart/etc/overrides.yml" ]
mongodb1:
image: mongo:7.0
command: [ "--bind_ip_all", "--replSet", "rs0" ]
env_file:
- path: $PWD/.env
required: true
volumes:
- $DATA_STORE:/data/db
ports:
- 27017:27017
healthcheck:
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongodb1:27017'}]}) }" | mongosh --port 27017 --quiet
interval: 5s
timeout: 10s
retries: 5
start_period: 5s
mosquitto:
image: eclipse-mosquitto
ports:
- "1883:1883"
- "8883:8883"
volumes:
- $PWD/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
dumper:
build: ./image_stream_dumper
links:
- restheart
env_file:
- path: $PWD/.env
required: true
environment:
- RESTHEART_ENDPOINT=http://restheart:8080
- CAM_STREAMING_URL=http://${GRIPPER_HOST}
- MOONRAKER_URL=http://${KLIPPER_HOST}:7125
- MQTT_BROKER_URL=mosquitto
- PYTHONUNBUFFERED=1
command: /src/.venv/bin/dumper
dynamics:
build: ./arm_dynamics
ports:
- 8003:8000
env_file:
- path: $PWD/.env
required: true
environment:
- MQTT_BROKER_URL=mosquitto
- MOONRAKER_URL=ws://${KLIPPER_HOST}/websocket
command: poetry run -- fastapi run src/main.py