generated from DAM/ts-TEMPLATE
32 lines
831 B
YAML
32 lines
831 B
YAML
services:
|
|
esphome-ts:
|
|
image: tailscale/tailscale:latest
|
|
hostname: esphome
|
|
container_name: esphome-ts
|
|
environment:
|
|
- TS_AUTHKEY={{YOUR_TAILSCALE_AUTHKEY}}
|
|
- TS_STATE_DIR=/var/lib/tailscale
|
|
- TS_SERVE_CONFIG=/config/serve.json
|
|
volumes:
|
|
- ./tailscale/tailscale-data:/var/lib/tailscale
|
|
- ./tailscale/config:/config
|
|
- /dev/net/tun:/dev/net/tun
|
|
cap_add:
|
|
- net_admin
|
|
- sys_module
|
|
restart: unless-stopped
|
|
esphome:
|
|
container_name: esphome
|
|
image: ghcr.io/esphome/esphome
|
|
volumes:
|
|
- ./config:/config
|
|
- /etc/localtime:/etc/localtime:ro
|
|
restart: always
|
|
privileged: true
|
|
# network_mode: host
|
|
environment:
|
|
- USERNAME=test
|
|
- PASSWORD=ChangeMe
|
|
network_mode: service:esphome-ts
|
|
depends_on:
|
|
- esphome-ts |