wireguard_webadmin/docker-compose-no-nginx.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

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/
ports:
2024-02-26 18:55:04 -03:00
# Do not directly expose the Django port to the internet, use some kind of reverse proxy with SSL.
- "127.0.0.1:8000:8000"
2024-02-26 18:55:04 -03:00
# Warning: Docker will have a hard time handling large amount of ports. Expose only the ports that you need.
# Ports for multiple WireGuard instances. (Probably, you just need one)
- "51820-51839:51820-51839/udp"
2024-02-26 18:55:04 -03:00
# Ports for port forwarding rules. Add your own ports here if you need them.
- "8080-8089:8080-8089/tcp"
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
2024-02-23 14:23:22 -03:00
wireguard-webadmin-cron:
2024-02-23 18:18:52 -03:00
container_name: wireguard-webadmin-cron
2024-02-23 14:23:22 -03:00
build:
context: ./cron
dockerfile: Dockerfile-cron
depends_on:
- wireguard-webadmin
volumes:
static_volume:
wireguard: