35 lines
949 B
YAML
35 lines
949 B
YAML
version: "3.8"
|
|
services:
|
|
devcontainer:
|
|
build:
|
|
dockerfile: Dockerfile
|
|
volumes:
|
|
- ../..:/workspaces:cached
|
|
- /etc/localtime:/etc/localtime:ro,cached
|
|
network_mode: host
|
|
userns_mode: keep-id
|
|
user: vscode
|
|
command: dbus-run-session -- sleep infinity
|
|
home-assistant:
|
|
image: ghcr.io/home-assistant/home-assistant:2024.2.0
|
|
volumes:
|
|
- ../deployments/home-assistant/config:/config
|
|
environment:
|
|
- "TZ=${TZ}"
|
|
restart: on-failure
|
|
userns_mode: keep-id
|
|
network_mode: host
|
|
mosquitto:
|
|
image: docker.io/eclipse-mosquitto:2.0.18
|
|
volumes:
|
|
- ../deployments/mosquitto/config:/mosquitto/config:cached
|
|
- ../deployments/mosquitto/data:/mosquitto/data
|
|
- ../deployments/mosquitto/log:/mosquitto/log
|
|
- /etc/localtime:/etc/localtime:ro,cached
|
|
ports:
|
|
- 1883:1883
|
|
- 8883:8883
|
|
restart: on-failure
|
|
network_mode: host
|
|
userns_mode: keep-id
|