From bd3aa28523f036f771eae83fd81f09e40a37a51d Mon Sep 17 00:00:00 2001 From: Dselen Date: Tue, 20 Aug 2024 14:48:36 -0500 Subject: [PATCH] Changed readme and compose for templating. --- docker/README.md | 9 +++++---- docker/compose.yaml | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docker/README.md b/docker/README.md index 7da87cd..ced5362 100644 --- a/docker/README.md +++ b/docker/README.md @@ -23,8 +23,8 @@ An example of a simple command to get the container running is show below:
docker run -d \ --name wireguard-dashboard \ --restart unless-stopped \ - -e enable_wg0=true \ - -e isolated_peers=true \ + -e enable=wg0 \ + -e isolate=wg0 \ -p 10086:10086/tcp \ -p 51820:51820/udp \ --cap-add NET_ADMIN \ @@ -89,10 +89,11 @@ To build the image yourself, you need to do a couple things:
1. Navigate into the docker directory. 1. (Make sure you have Docker correctly installed, if not: [Click here](https://docs.docker.com/engine/install/)) and run: `docker build . -t :` as an example: `docker build . -t dselen/wgdashboard:latest`.
This will make Docker compile the image from the resources in the directory you mention, in this case the current one. Let it compile, it takes about a minute or maximally two. 1. If all went well, see your image with `docker images`. Example below: -``` + +```shell dselen@dev-mach:~/development/WGDashboard/docker$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE -dselen/wgdashboard dev c96fd96ee3b3 42 minutes ago 314MB +dselen/wgdashboard latest c96fd96ee3b3 42 minutes ago 314MB ``` ## Closing remarks: diff --git a/docker/compose.yaml b/docker/compose.yaml index 83f86b7..3d6c082 100644 --- a/docker/compose.yaml +++ b/docker/compose.yaml @@ -1,6 +1,6 @@ services: wireguard-dashboard: - image: dselen/wgdashboard:dev + image: dselen/wgdashboard:latest restart: unless-stopped container_name: wire-dash environment: @@ -11,7 +11,7 @@ services: #- public_ip= # <--- Set public IP to ensure the correct one is chosen, defaulting to the IP give by ifconfig.me. ports: - 10086:10086/tcp - - 51820:51820/udp + - 51830:51820/udp volumes: - conf:/etc/wireguard - app:/opt/wireguarddashboard