docker-compose.debug.yml 957 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. services:
  2. frontend:
  3. container_name: frontend
  4. image: node:16-alpine
  5. volumes:
  6. - ../trane-tech-energy-strategy-optimization-platform-front-end:/app
  7. working_dir: /app
  8. command: ["sh", "-c", "npm install && npm run serve"]
  9. ports:
  10. - 8091:8080
  11. restart: unless-stopped
  12. backend:
  13. container_name: backend
  14. image: maven:3.8.6-openjdk-8
  15. volumes:
  16. - ../trane-tech-energy-strategy-optimization-platform-backend:/app
  17. - ~/.m2:/root/.m2
  18. working_dir: /app
  19. command: ["mvn", "spring-boot:run"]
  20. ports:
  21. # - 8092:8082
  22. - 8082:8082
  23. restart: unless-stopped
  24. nginx:
  25. container_name: nginx
  26. image: nginx:latest
  27. volumes:
  28. - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
  29. ports:
  30. - 8085:80
  31. - 443:443
  32. depends_on:
  33. - frontend
  34. - backend
  35. networks:
  36. default:
  37. driver: bridge
  38. volumes:
  39. trane_data: