docker-compose.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. adminer:
  34. image: adminer:latest
  35. ports:
  36. - 8080:8080
  37. sqlserver:
  38. container_name: db_sqlserver
  39. # image: mcr.microsoft.com/mssql/server:2019-latest
  40. image: microsoft/mssql-server-linux:2017-latest
  41. environment:
  42. - ACCEPT_EULA=Y
  43. - SA_PASSWORD=Aa_12345678
  44. - MSSQL_SA_PASSWORD=Aa_12345678
  45. ports:
  46. - 1433:1433
  47. networks:
  48. default:
  49. external:
  50. name: githubactionscreator