0% found this document useful (0 votes)
2 views

Guide Docker

The document provides instructions for installing Docker and setting up Homebridge and Portainer using Docker Compose. It includes commands for downloading the Docker installation script, adding the user to the Docker group, and installing necessary packages. Additionally, it contains example YAML configurations for Homebridge and Portainer services to be run with Docker Compose.

Uploaded by

Ngô Gia Hải
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Guide Docker

The document provides instructions for installing Docker and setting up Homebridge and Portainer using Docker Compose. It includes commands for downloading the Docker installation script, adding the user to the Docker group, and installing necessary packages. Additionally, it contains example YAML configurations for Homebridge and Portainer services to be run with Docker Compose.

Uploaded by

Ngô Gia Hải
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

curl -fsSL https://get.docker.com -o get-docker.

sh
sh get-docker.sh
sudo usermod -aG docker $USER

sudo apt-get install -y python3-pip docker-compose

homebridge.yml
"
version: '2'
services:
homebridge:
image: oznu/homebridge:latest
restart: always
network_mode: host
volumes:
- ./homebridge:/homebridge
environment:
- TZ=Asia/Ho_Chi_Minh
- PGID=1000
- PUID=1000
- HOMEBRIDGE_CONFIG_UI=1
- HOMEBRIDGE_CONFIG_UI_PORT=8581
- HOMEBRIDGE_DEBUG=1
"

portainer.yml
"
version: '2'
services:
portainer:
image: portainer/portainer-ce:latest
restart: always
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data

volumes:
portainer_data:
"

docker-compose -f homebridge.yml up -d
docker-compose -f portainer.yml up -d

You might also like