docker-compose.yml 846 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. version: '3.4'
  2. services:
  3. springboot:
  4. image: jianboy/springboot:latest
  5. build:
  6. context: .
  7. dockerfile: ./Dockerfile
  8. ports:
  9. - 3000:3000
  10. volumes:
  11. - hostPath:containerPath:ro
  12. h2:
  13. container_name: MyH2Instance
  14. image: oscarfonts/h2:latest
  15. ports:
  16. - 1521:1521
  17. - 81:81
  18. volumes:
  19. - $(pwd):/opt/h2-data
  20. environment:
  21. - H2_OPTIONS=-ifNotExists
  22. adminer:
  23. image: adminer:latest
  24. ports:
  25. - 8080:8080
  26. sqlserver:
  27. container_name: db_sqlserver
  28. # image: mcr.microsoft.com/mssql/server:2019-latest
  29. image: microsoft/mssql-server-linux:2017-latest
  30. environment:
  31. - ACCEPT_EULA=Y
  32. - SA_PASSWORD=Aa_12345678
  33. - MSSQL_SA_PASSWORD=Aa_12345678
  34. ports:
  35. - 1433:1433
  36. networks:
  37. default:
  38. external:
  39. name: githubactionscreator