28 lines
810 B
YAML
28 lines
810 B
YAML
version: '3.8'
|
|
services:
|
|
data-collector:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
environment:
|
|
- PI_HOST=${PI_HOST}
|
|
- PI_USER=${PI_USER:-pi}
|
|
- SSH_KEY_PATH=/workspace/.ssh/id_rsa
|
|
- STALL_WINDOW_SECONDS=${STALL_WINDOW_SECONDS:-300}
|
|
- RESTART_COOLDOWN_SECONDS=${RESTART_COOLDOWN_SECONDS:-3600}
|
|
volumes:
|
|
- /volume1/docker/weatherstation:/workspace
|
|
- /volume1/docker/weatherstation/data:/workspace/data
|
|
- /volume1/docker/weatherstation/secrets/id_rsa:/workspace/.ssh/id_rsa:ro
|
|
- /volume1/docker/weatherstation/secrets/known_hosts:/workspace/.ssh/known_hosts:ro
|
|
restart: unless-stopped
|
|
command: python datacollector.py
|
|
networks:
|
|
- data-net
|
|
stdin_open: true
|
|
tty: true
|
|
|
|
networks:
|
|
data-net:
|
|
driver: bridge
|