mamanga

docker-compose.yml optimizado para tu VPS Oracle Always Free (1GB RAM)

Apr 18th, 2025
160
0
Never
13
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. docker-compose.yml optimizado para tu VPS Oracle Always Free (1GB RAM), integrando WireGuard-Easy (VPN) + AdGuard Home (DNS) + SSH-Chat, con ajustes para minimizar el uso de recursos, con límites estrictos de RAM y CPU, pensada para tu VPS Oracle Always Free (1GB RAM), priorizando estabilidad y bajo consumo:
  2.  
  3. 🐳 docker-compose.yml Optimizado al Máximo:
  4.  
  5. version: '3.8'
  6.  
  7. services:
  8. wireguard:
  9. image: ghcr.io/wg-easy/wg-easy:latest
  10. container_name: wireguard
  11. environment:
  12. - WG_HOST=tu_ip_o_dominio
  13. - WG_PORT=51820
  14. - WG_DEFAULT_ADDRESS=10.8.0.x
  15. - WG_DEFAULT_DNS=10.8.1.3 # IP de AdGuard
  16. - PASSWORD=tu_contraseña
  17. volumes:
  18. - ./wireguard:/etc/wireguard
  19. ports:
  20. - "51820:51820/udp"
  21. - "51821:51821/tcp"
  22. cap_add:
  23. - NET_ADMIN
  24. - SYS_MODULE
  25. sysctls:
  26. - net.ipv4.ip_forward=1
  27. deploy:
  28. resources:
  29. limits:
  30. memory: 200M # WireGuard es ligero
  31. cpus: '0.3'
  32. reservations:
  33. memory: 100M
  34. restart: unless-stopped
  35. networks:
  36. vpn_network:
  37.  
  38. adguard:
  39. image: adguard/adguardhome:latest
  40. container_name: adguard
  41. volumes:
  42. - ./adguard/work:/opt/adguardhome/work
  43. - ./adguard/conf:/opt/adguardhome/conf
  44. ports:
  45. - "53:53/tcp"
  46. - "53:53/udp"
  47. - "3000:3000/tcp"
  48. deploy:
  49. resources:
  50. limits:
  51. memory: 300M # AdGuard con cache reducida
  52. cpus: '0.5'
  53. reservations:
  54. memory: 150M
  55. environment:
  56. - ADGUARD_CACHE_SIZE=2 # Cache DNS de solo 2MB
  57. restart: on-failure:3
  58. networks:
  59. vpn_network:
  60. ipv4_address: 10.8.1.3
  61.  
  62. ssh-chat:
  63. image: shazow/ssh-chat
  64. container_name: ssh-chat
  65. command: --admin="tu_usuario" --verbose=false --max-connections=20 # Limita conexiones
  66. ports:
  67. - "10.8.1.4:2022:22"
  68. deploy:
  69. resources:
  70. limits:
  71. memory: 100M # SSH-Chat muy ligero
  72. cpus: '0.2'
  73. reservations:
  74. memory: 50M
  75. restart: unless-stopped
  76. networks:
  77. vpn_network:
  78. ipv4_address: 10.8.1.4
  79.  
  80. networks:
  81. vpn_network:
  82. driver: bridge
  83. ipam:
  84. config:
  85. - subnet: 10.8.1.0/24
  86.  
  87. 🔧 Ajustes Clave para 1GB RAM:
  88. Contenedor Límite RAM CPU Optimización Específica
  89. WireGuard 200MB 0.3v Sin IPv6, conexiones P2P eficientes.
  90. AdGuard 300MB 0.5v Cache DNS reducida (2MB).
  91. SSH-Chat 100MB 0.2v Máx. 20 conexiones, sin logs verbosos.
  92.  
  93. 🚀 Recomendaciones Adicionales:
  94. Swap File (Obligatorio en Oracle Free Tier):
  95.  
  96. sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 && \
  97. sudo chmod 600 /swapfile && \
  98. sudo mkswap /swapfile && \
  99. sudo swapon /swapfile
  100.  
  101. Añade esto a /etc/fstab para persistencia:
  102.  
  103. /swapfile swap swap defaults 0 0
  104.  
  105. Monitorización en Tiempo Real:
  106.  
  107. watch -n 5 "docker stats --no-stream"
  108.  
  109. AdGuard Home - Ajustes Manuales:
  110.  
  111. Desactiva filtros no esenciales (UI → Filtros → Solo AdGuard Base).
  112. Reduce el límite de consultas DNS concurrentes (Configuración → DNS → ratelimit: 20).
  113.  
  114. ⚠️ Solución si un Contenedor se Reinicia:
  115. Si AdGuard excede la RAM:
  116.  
  117. docker update adguard --memory 350M # Aumento temporal
  118.  
  119. Y luego ajusta su caché o filtros.
  120.  
  121. 📌 ¿Por qué estos Límites?
  122.  
  123. WireGuard: Usa ~50MB por conexión (con 200MB podrías tener ~3-4 usuarios activos).
  124. AdGuard: Con 300MB y caché mínima, sirve ~10-15 dispositivos.
  125. SSH-Chat: 100MB son suficientes para 20 usuarios en chat plano.
  126.  
  127. Message DeepSeek
  128.  
  129.  
  130.  
  131.  
  132.  
Advertisement
Comments
  • User was banned
  • Vinjuwyn
    219 days
    # CSS 0.83 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1S1iTruSLkgEPO8QtTuo2twS4f2FoJ3_l0-p4GKqeAUY/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8.  
    9. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    10.  
    11. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification).
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment