forked from jblance/powermon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.development.yaml
58 lines (54 loc) · 1.2 KB
/
docker-compose.development.yaml
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
services:
mosquitto:
image: eclipse-mosquitto
network_mode: host
ports:
- "1883:1883"
volumes:
- ./docker/mosquitto/config:/mosquitto/config
- ./docker/mosquitto/data:/mosquitto/data
- ./docker/mosquitto/log:/mosquitto/log
mppsolar:
network_mode: host
devices:
- /dev/hidraw0:/dev/hidraw0
volumes:
#Bind over the configuration
- type: bind
source: ./docker/dev/config/
target: /config
build:
context: ./
dockerfile: docker/dev/Dockerfile
entrypoint:
- powermon
- -C
- /config/powermon.yaml #Available due to volume binding above
- --debug
depends_on:
- mosquitto
fastapi:
network_mode: host
volumes:
#Bind over the configuration
- type: bind
source: ./api/
target: /code/api/
- type: bind
source: ./powermon/dto/
target: /code/powermon/dto/
build:
context: api
dockerfile: Dockerfile.development
entrypoint:
- uvicorn
- api.app.main:app
- --host
- "0.0.0.0"
- --port
- "80"
- --timeout-keep-alive
- "30"
- --reload
depends_on:
- mppsolar