mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-04-17 07:55:12 +00:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: '3'
|
|
services:
|
|
wireguard-webadmin:
|
|
container_name: wireguard-webadmin
|
|
restart: unless-stopped
|
|
build:
|
|
context: .
|
|
environment:
|
|
- SERVER_ADDRESS=127.0.0.1
|
|
- DEBUG_MODE=True
|
|
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"
|
|
# 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"
|
|
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- SYS_MODULE
|
|
sysctls:
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
- net.ipv4.ip_forward=1
|
|
command: /bin/bash /app/init.sh
|
|
|
|
wireguard-webadmin-cron:
|
|
container_name: wireguard-webadmin-cron
|
|
build:
|
|
context: ./cron
|
|
dockerfile: Dockerfile-cron
|
|
depends_on:
|
|
- wireguard-webadmin
|
|
|
|
volumes:
|
|
static_volume:
|
|
wireguard:
|