docker-compose.yml 522 B

1234567891011121314151617181920212223242526
  1. version: "3.7"
  2. services:
  3. galaxy-micro-service:
  4. build:
  5. context: .
  6. dockerfile: ./Dockerfile
  7. image: tool-page-service:latest
  8. container_name: tool-page-service
  9. healthcheck:
  10. test: ["CMD-SHELL","curl --fail http://localhost:8080/actuator/health"]
  11. interval: 10s
  12. timeout: 5s
  13. retries: 3
  14. deploy:
  15. resources:
  16. limits:
  17. memory: 2048M
  18. ports:
  19. - "8080:8080"
  20. restart: always
  21. networks:
  22. - backend
  23. networks:
  24. backend:
  25. driver: bridge