You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
934 B

  1. version: '3.6'
  2. services:
  3. wg-gen-web-lec:
  4. image: vx3r/wg-gen-web:latest
  5. container_name: wg-gen-web-lec
  6. restart: unless-stopped
  7. expose:
  8. - "8080"
  9. ports:
  10. - "8080:8080"
  11. environment:
  12. - WG_CONF_DIR=/data
  13. - WG_INTERFACE_NAME=wg0.conf
  14. - WG_STATS_API=http://172.20.1.1:8182
  15. - WG_STATS_API_USER=
  16. - WG_STATS_API_PASS=
  17. - SMTP_HOST=
  18. - SMTP_PORT=
  19. - SMTP_USERNAME=
  20. - SMTP_PASSWORD=
  21. - SMTP_FROM=
  22. volumes:
  23. - /etc/wireguard:/data
  24. networks:
  25. default:
  26. aliases:
  27. - wg-web
  28. wg-json-api:
  29. image: james/wg-api:latest
  30. container_name: wg-json-api
  31. restart: unless-stopped
  32. cap_add:
  33. - NET_ADMIN
  34. network_mode: "host"
  35. command: wg-api --device wg0 --listen 172.20.1.1:8182
  36. networks:
  37. default:
  38. driver: bridge
  39. ipam:
  40. driver: default
  41. config:
  42. - subnet: 172.20.1.0/24