Advertisement
Sergio_Istea

balancer.app compose

Jun 13th, 2024
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. version: '3.8'
  2.  
  3. services:
  4. backend-1:
  5. image: ubuntu/apache2
  6. container_name: balancer.app-1
  7. restart: always
  8. ports:
  9. - "8000:80"
  10. networks:
  11. - balancer.app-net
  12. volumes:
  13. - /srv/balancer.app:/var/www/html
  14.  
  15. backend-2:
  16. image: ubuntu/apache2
  17. container_name: balancer.app-2
  18. restart: always
  19. ports:
  20. - "8001:80"
  21. networks:
  22. - balancer.app-net
  23. volumes:
  24. - /srv/balancer.app:/var/www/html
  25.  
  26. networks:
  27. balancer.app-net:
  28. driver: bridge
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement