mirror of
https://github.com/NotAShelf/air-quality-monitor.git
synced 2024-11-22 21:31:11 +00:00
21 lines
354 B
YAML
21 lines
354 B
YAML
|
version: "3.4"
|
||
|
services:
|
||
|
redis:
|
||
|
image: redis
|
||
|
volumes:
|
||
|
- ./data/redis:/data
|
||
|
web:
|
||
|
build: .
|
||
|
image: pi-air-quality-monitor
|
||
|
devices:
|
||
|
- "/dev/ttyUSB0:/dev/ttyUSB0"
|
||
|
environment:
|
||
|
- REDIS_HOST=redis
|
||
|
- PORT=8000
|
||
|
volumes:
|
||
|
- ./src:/code
|
||
|
depends_on:
|
||
|
- "redis"
|
||
|
ports:
|
||
|
- "8000:8000"
|