mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-04-17 07:55:12 +00:00
39 lines
915 B
YAML
39 lines
915 B
YAML
version: '3'
|
|
services:
|
|
wireguard-webadmin:
|
|
image: ubuntu:latest
|
|
container_name: wireguard-webadmin
|
|
build:
|
|
context: .
|
|
volumes:
|
|
- wireguard:/etc/wireguard
|
|
- static_volume:/app_static_files/
|
|
- .:/app
|
|
ports:
|
|
- "127.0.0.1:8000:8000"
|
|
- "51820-51839:51820-51839/udp"
|
|
# dont go crazy adding ports. Docker will have a hard time handling with a large range of ports
|
|
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
|
|
|
|
nginx:
|
|
container_name: wireguard-webadmin-nginx
|
|
image: nginx:alpine
|
|
volumes:
|
|
- ./virtualhost.conf:/etc/nginx/conf.d/wireguard-webadmin.conf
|
|
- static_volume:/static
|
|
- https_cert:/certificate
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
|
|
volumes:
|
|
static_volume:
|
|
https_cert:
|
|
wireguard:
|