-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
34 lines (31 loc) · 1017 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '3'
services:
hassio:
image: homeassistant/armv7-hassio-supervisor
container_name: hassio_supervisor
privileged: true
restart: always
security_opt:
- seccomp:unconfined
- apparmor:unconfined
environment:
- HOMEASSISTANT_REPOSITORY=homeassistant/raspberrypi4-homeassistant
- SUPERVISOR_NAME=hassio_supervisor
- SUPERVISOR_SHARE=/home/pi/hassio/data
- DBUS_SYSTEM_BUS_ADDRESS=unix:path=/var/run/dbus/system_bus_socket
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/pi/hassio/data:/data
- /home/pi/hassio/scripts:/scripts
- /var/run/docker.sock:/var/run/docker.sock
- /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket
portainer:
image: portainer/portainer
container_name: portainer
restart: always
ports:
- "9000:9000"
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/pi/hassio/portainer:/data:rw