-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (38 loc) · 1.14 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
version: '2'
services:
sensor:
build: ./sensor
command: >
bash -c "
python measurement.py
--dht22=$CLEVER_HARVEST_DHT22_PIN
--google-api-client-secret-json=\"$CLEVER_HARVEST_GOOGLE_API_CLIENT_SECRET_JSON\"
--image
--image-rotation=$CLEVER_HARVEST_IMAGE_ROTATION
--moisture-pin=$CLEVER_HARVEST_MOISTURE_PIN
--s3-access-key-id=$CLEVER_HARVEST_S3_ACCESS_KEY_ID
--s3-bucket=$CLEVER_HARVEST_S3_BUCKET_NAME
--s3-secret-access-key=$CLEVER_HARVEST_S3_SECRET_ACCESS_KEY
--title=$CLEVER_HARVEST_TITLE
"
environment:
- CLEVER_HARVEST_DHT22_PIN
- CLEVER_HARVEST_GOOGLE_API_CLIENT_SECRET_JSON
- CLEVER_HARVEST_IMAGE_ROTATION
- CLEVER_HARVEST_MOISTURE_PIN
- CLEVER_HARVEST_S3_ACCESS_KEY_ID
- CLEVER_HARVEST_S3_BUCKET_NAME
- CLEVER_HARVEST_S3_SECRET_ACCESS_KEY
- CLEVER_HARVEST_TITLE
privileged: true
restart: always
web:
build: ./web
command: python -u app.py
environment:
- CLEVER_HARVEST_GOOGLE_API_CLIENT_SECRET_JSON
- CLEVER_HARVEST_TITLE
ports:
- "80:80"
privileged: true
restart: always