From 15057962c3ddcf87fe26e4d64ca398e345352758 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Fri, 26 Aug 2022 11:06:51 +0300 Subject: [PATCH] Updated Configuration (markdown) --- Configuration.md | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Configuration.md b/Configuration.md index 01a9b3d..3a33248 100644 --- a/Configuration.md +++ b/Configuration.md @@ -1 +1,34 @@ -This will be expanded upon as time moves. \ No newline at end of file +# 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