joshuar-go-hass-agent/.devcontainer/docker-compose.yml

42 lines
1.1 KiB
YAML

x-podman:
in_pod: false
services:
devcontainer:
build:
dockerfile: Dockerfile
volumes:
- ..:/workspace:cached
- /etc/localtime:/etc/localtime:ro,cached
- /run/dbus:/run/dbus:ro
- /run/user/1000/bus:/run/user/1000/bus
- /tmp/.X11-unix:/tmp/.X11-unix
hostname: devcontainer
user: vscode
userns_mode: keep-id
cap_add:
- SYS_PTRACE
security_opt:
- seccomp:unconfined
command: sleep infinity
home-assistant:
image: ghcr.io/home-assistant/home-assistant:$HA_VERSION
volumes:
- ../deployments/home-assistant/config:/config:Z,U
- /run/dbus:/run/dbus:ro
restart: on-failure
ports:
- 8123:8123
userns_mode: keep-id
mosquitto:
image: docker.io/eclipse-mosquitto:$MOSQUITTO_VERSION
volumes:
- ../deployments/mosquitto/config:/mosquitto/config:Z,U
- ../deployments/mosquitto/data:/mosquitto/data:Z,U
- ../deployments/mosquitto/log:/mosquitto/log:Z,U
- /etc/localtime:/etc/localtime:ro,cached
userns_mode: keep-id
restart: on-failure
ports:
- 1883:1883
- 8883:8883