mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-26 13:21:14 +00:00
Improved docker-compose to handle server_address. Also added an option to run without nginx.
This commit is contained in:
@@ -2,15 +2,18 @@ version: '3'
|
||||
services:
|
||||
wireguard-webadmin:
|
||||
container_name: wireguard-webadmin
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: .
|
||||
environment:
|
||||
- SERVER_ADDRESS=${SERVER_ADDRESS}
|
||||
- DEBUG_MODE=${DEBUG_MODE}
|
||||
volumes:
|
||||
- wireguard:/etc/wireguard
|
||||
- static_volume:/app_static_files/
|
||||
- .:/app
|
||||
ports:
|
||||
# Do not directly expose the Django port to the internet, use the reverse proxy below instead
|
||||
- "127.0.0.1:8000:8000"
|
||||
#- "127.0.0.1:8000:8000"
|
||||
# dont go crazy increasing the udp port range. Docker will have a hard time handling with a large range of ports
|
||||
# Actually, you probably will use only one port, but you can add more server instances if you want
|
||||
- "51820-51839:51820-51839/udp"
|
||||
@@ -25,6 +28,7 @@ services:
|
||||
|
||||
nginx:
|
||||
container_name: wireguard-webadmin-nginx
|
||||
restart: unless-stopped
|
||||
image: nginx:alpine
|
||||
volumes:
|
||||
- ./virtualhost.conf:/etc/nginx/conf.d/wireguard-webadmin.conf
|
||||
|
Reference in New Issue
Block a user