mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 15:20:09 +01:00
Persistency seems to work with this model, it has succeeded my tests.
This commit is contained in:
parent
0938f5ab71
commit
560096878f
@ -20,7 +20,7 @@ RUN ln -sf /usr/share/zoneinfo/${tz} /etc/localtime \
|
|||||||
# Removing the linux-image package to preserve space on the container.
|
# Removing the linux-image package to preserve space on the container.
|
||||||
|
|
||||||
# Installing needed packages for installation.
|
# Installing needed packages for installation.
|
||||||
RUN apt-get install -y --no-install-recommends git wireguard wireguard-tools python3 python3-pip python3-venv iproute2 openresolv procps iptables curl
|
RUN apt-get install -y --no-install-recommends git wireguard wireguard-tools python3 python3-pip python3-venv iproute2 openresolv procps iptables curl iputils-ping traceroute
|
||||||
|
|
||||||
ENV WGDASH=/opt/wireguardashboard
|
ENV WGDASH=/opt/wireguardashboard
|
||||||
RUN python3 -m venv ${WGDASH}/venv
|
RUN python3 -m venv ${WGDASH}/venv
|
||||||
|
@ -4,6 +4,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: wire-dash
|
container_name: wire-dash
|
||||||
environment:
|
environment:
|
||||||
|
#- global_dns=8.8.8.8
|
||||||
#- tz=Europe/Amsterdam # <--- is default
|
#- tz=Europe/Amsterdam # <--- is default
|
||||||
- public_ip=212.124.66.17
|
- public_ip=212.124.66.17
|
||||||
ports:
|
ports:
|
||||||
@ -11,8 +12,10 @@ services:
|
|||||||
- 51820:51820/udp
|
- 51820:51820/udp
|
||||||
volumes:
|
volumes:
|
||||||
- wireguard_confs:/etc/wireguard
|
- wireguard_confs:/etc/wireguard
|
||||||
|
- wireguard_app:/opt/wireguardashboard/app
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
wireguard_confs:
|
wireguard_confs:
|
||||||
|
wireguard_app:
|
@ -1,4 +1,7 @@
|
|||||||
echo "Starting the WireGuard Dashboard."
|
echo "\nStarting the WireGuard Dashboard."
|
||||||
|
|
||||||
|
# Cleaning out previous data such as the .pid file.
|
||||||
|
rm /opt/wireguardashboard/app/src/gunicorn.pid
|
||||||
|
|
||||||
# Starting the WireGuard Dashboard Web-UI.
|
# Starting the WireGuard Dashboard Web-UI.
|
||||||
. ${WGDASH}/venv/bin/activate
|
. ${WGDASH}/venv/bin/activate
|
||||||
@ -23,7 +26,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 3s
|
sleep 3s
|
||||||
tail -f /opt/wireguardashboard/app/src/log/*.log
|
tail -f $(ls -t /opt/wireguardashboard/app/src/log/error_*.log | head -n 1)
|
||||||
|
|
||||||
# Blocking command in case of erroring.
|
# Blocking command in case of erroring.
|
||||||
sleep infinity
|
sleep infinity
|
Loading…
Reference in New Issue
Block a user