docker-compose.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Copyright 2022 Apollo Authors
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. version: '2'
  17. services:
  18. apollo-quick-start:
  19. image: nobodyiam/apollo-quick-start
  20. container_name: apollo-quick-start
  21. depends_on:
  22. - apollo-db
  23. ports:
  24. - "8080:8080"
  25. - "8090:8090"
  26. - "8070:8070"
  27. links:
  28. - apollo-db
  29. apollo-db:
  30. image: mysql:5.7
  31. container_name: apollo-db
  32. environment:
  33. TZ: Asia/Shanghai
  34. MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
  35. depends_on:
  36. - apollo-dbdata
  37. ports:
  38. - "13306:3306"
  39. volumes:
  40. - ./sql:/docker-entrypoint-initdb.d
  41. volumes_from:
  42. - apollo-dbdata
  43. apollo-dbdata:
  44. image: alpine:latest
  45. container_name: apollo-dbdata
  46. volumes:
  47. - /var/lib/mysql