From 6f1ebd26720931a6395f5dc59ebc145526d29bfd Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Fri, 26 Aug 2022 11:07:19 +0300 Subject: [PATCH] Created Docker (markdown) --- Docker.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Docker.md diff --git a/Docker.md b/Docker.md new file mode 100644 index 0000000..3a33248 --- /dev/null +++ b/Docker.md @@ -0,0 +1,34 @@ +# Docker + +Docker instances are configured inside the `docker.yaml` file. Both IP:PORT and Socket connections are supported. + +For IP:PORT, simply make sure your Docker instance [has been configured](https://gist.github.com/styblope/dc55e0ad2a9848f2cc3307d4819d819f) to accept API traffic over the HTTP API. + +```yaml +my-remote-docker: + host: 192.168.0.101 + port: 2375 +``` + +For Sockets, make sure that you're passing the local socket into the Docker container (if you're running inside of Docker). + +```yaml +my-local-docker: + socket: /var/run/docker.sock +``` + +and inside of your Docker Compose: + +```yaml +homepage: + image: ghcr.io/benphelps/homepage:main + container_name: homepage + volumes: + - /path/to/config:/app/config + - /var/run/docker.sock:/var/run/docker.sock # This passes your local docker socket to the container + ports: + - 3003:3000 + restart: unless-stopped +``` + +of if you're using `docker run`, add `-v /var/run/docker.sock:/var/run/docker.sock` \ No newline at end of file