docker-compose.yml 714 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. version: '3.4'
  2. services:
  3. githubactionscreator:
  4. image: jianboy/springboot:latest
  5. build:
  6. context: .
  7. dockerfile: ./Dockerfile
  8. ports:
  9. - 3000:3000
  10. volumes:
  11. - hostPath:containerPath:ro
  12. mysql:
  13. image: mysql:5.7
  14. environment:
  15. MYSQL_ROOT_PASSWORD: root
  16. MYSQL_DATABASE: githubactionscreator
  17. ports:
  18. - 3306:3306
  19. redis:
  20. image: redis:latest
  21. ports:
  22. - 6379:6379
  23. h2:
  24. container_name: MyH2Instance
  25. image: oscarfonts/h2:latest
  26. ports:
  27. - 1521:1521
  28. - 81:81
  29. volumes:
  30. - $(pwd):/opt/h2-data
  31. environment:
  32. - H2_OPTIONS=-ifNotExists
  33. networks:
  34. default:
  35. external:
  36. name: githubactionscreator