From 66e68ee9ea7f2455a229d9da90a08f9518e92e8b Mon Sep 17 00:00:00 2001 From: Simon Lerpard Date: Wed, 3 Jun 2020 14:02:16 +0200 Subject: [PATCH] Fix incorrect port mapping in docker-compose Fixed an incorrect port mapping the the docker-compose example as well as added a restart attribute, since it's most likely a good use case to always keep the server up and running, even if it fails or the host is updated/restarted. Also added a missing end parenthesis in the table of env variables. --- README.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 21b2087..6865297 100644 --- a/README.md +++ b/README.md @@ -33,11 +33,12 @@ The features of wg-manager includes: wireguard: container_name: wg-manager image: perara/wg-manager + restart: always cap_add: - NET_ADMIN #network_mode: host # Alternatively ports: - - 51800:51900/udp + - 51800-51900:51800-51900/udp - 8888:8888 volumes: - ./wg-manager:/config @@ -62,16 +63,16 @@ When docker container/server has started, go to http://localhost:8888 # Environment variables -| Environment | Description | Recommended | -|------------------|--------------------------------------------------------------------------|-------------| -| GUNICORN_CONF | Location of custom gunicorn configuration | default | -| WORKERS_PER_CORE | How many concurrent workers should there be per available core (Gunicorn | default | -| WEB_CONCURRENCY | The number of worker processes for handling requests. (Gunicorn) | 1 | -| HOST | 0.0.0.0 or unix:/tmp/gunicorn.sock if reverse proxy. Remember to mount | 0.0.0.0 | -| PORT | The port to use if running with IP host bind | 80 | -| LOG_LEVEL | Logging level of gunicorn/python | info | -| ADMIN_USERNAME | Default admin username on database creation | admin | -| ADMIN_PASSWORD | Default admin password on database creation | admin | +| Environment | Description | Recommended | +|------------------|---------------------------------------------------------------------------|-------------| +| GUNICORN_CONF | Location of custom gunicorn configuration | default | +| WORKERS_PER_CORE | How many concurrent workers should there be per available core (Gunicorn) | default | +| WEB_CONCURRENCY | The number of worker processes for handling requests. (Gunicorn) | 1 | +| HOST | 0.0.0.0 or unix:/tmp/gunicorn.sock if reverse proxy. Remember to mount | 0.0.0.0 | +| PORT | The port to use if running with IP host bind | 80 | +| LOG_LEVEL | Logging level of gunicorn/python | info | +| ADMIN_USERNAME | Default admin username on database creation | admin | +| ADMIN_PASSWORD | Default admin password on database creation | admin | # Showcase ![Illustration](docs/images/0.png)