Add docker-compose sample file (#1903)

This commit is contained in:
Sebastian Lövdahl 2022-02-16 00:14:33 +02:00 committed by GitHub
parent 06d93a23ba
commit f9ded4090a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,23 @@ AMD64, ARM and ARM64 (AARCH64), and can be downloaded with:
docker pull esphome/esphome
If you want to use `docker-compose` instead, here's a sample file:
.. code-block:: yaml
version: '3'
services:
esphome:
container_name: esphome
image: esphome/esphome
volumes:
- /path/to/esphome/config:/config
- /etc/localtime:/etc/localtime:ro
restart: always
privileged: true
network_mode: host
Connecting the ESP Device
-------------------------