generated from DAM/ts-TEMPLATE
manual init
This commit is contained in:
parent
7022ce4873
commit
4550a279de
@ -1,8 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
{{service}}-ts:
|
esphome-ts:
|
||||||
image: tailscale/tailscale:latest
|
image: tailscale/tailscale:latest
|
||||||
hostname: {{service}}
|
hostname: esphome
|
||||||
container_name: {{service}}-ts
|
container_name: esphome-ts
|
||||||
environment:
|
environment:
|
||||||
- TS_AUTHKEY={{YOUR_TAILSCALE_AUTHKEY}}
|
- TS_AUTHKEY={{YOUR_TAILSCALE_AUTHKEY}}
|
||||||
- TS_STATE_DIR=/var/lib/tailscale
|
- TS_STATE_DIR=/var/lib/tailscale
|
||||||
@ -15,7 +15,18 @@ services:
|
|||||||
- net_admin
|
- net_admin
|
||||||
- sys_module
|
- sys_module
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
{{service-compose}}
|
esphome:
|
||||||
network_mode: service:{{service}}-ts
|
container_name: esphome
|
||||||
|
image: ghcr.io/esphome/esphome
|
||||||
|
volumes:
|
||||||
|
- /path/to/esphome/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:
|
depends_on:
|
||||||
- {{service}}-ts
|
- esphome-ts
|
Loading…
x
Reference in New Issue
Block a user