scripts/wind/docker/esphome.sh

32 lines
562 B
Bash
Raw Normal View History

2024-02-06 08:19:11 -05:00
#!/bin/bash
set -e
up () {
docker network create pew-net || true
# Exposed on port 6052 on pew-net
docker run \
--detach \
--name esphome \
2024-09-02 16:54:16 -04:00
--restart always \
2024-02-06 08:19:11 -05:00
--env ESPHOME_DASHBOARD_USE_PING=true \
--env USERNAME=paul \
--env PASSWORD=paulwalko \
--volume /bigdata/ha/esphome/config:/config:rw \
--volume /etc/localtime:/etc/localtime:ro \
--network pew-net \
ghcr.io/esphome/esphome:stable
}
down () {
docker stop esphome || true
docker rm esphome || true
}
logs () {
docker logs --follow esphome
}
$@