Browse Source

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.
pull/15/head
Simon Lerpard 5 years ago
parent
commit
66e68ee9ea
  1. 7
      README.md

7
README.md

@ -33,11 +33,12 @@ The features of wg-manager includes:
wireguard: wireguard:
container_name: wg-manager container_name: wg-manager
image: perara/wg-manager image: perara/wg-manager
restart: always
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
#network_mode: host # Alternatively #network_mode: host # Alternatively
ports: ports:
- 51800:51900/udp - 51800-51900:51800-51900/udp
- 8888:8888 - 8888:8888
volumes: volumes:
- ./wg-manager:/config - ./wg-manager:/config
@ -63,9 +64,9 @@ When docker container/server has started, go to http://localhost:8888
# Environment variables # Environment variables
| Environment | Description | Recommended | | Environment | Description | Recommended |
|------------------|--------------------------------------------------------------------------|-------------| |------------------|---------------------------------------------------------------------------|-------------|
| GUNICORN_CONF | Location of custom gunicorn configuration | default | | GUNICORN_CONF | Location of custom gunicorn configuration | default |
| WORKERS_PER_CORE | How many concurrent workers should there be per available core (Gunicorn | 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 | | 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 | | 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 | | PORT | The port to use if running with IP host bind | 80 |

Loading…
Cancel
Save