docker-compose.yml 663 B

12345678910111213141516171819202122232425262728293031323334
  1. version: '2'
  2. services:
  3. apollo-quick-start:
  4. image: nobodyiam/apollo-quick-start
  5. container_name: apollo-quick-start
  6. depends_on:
  7. - apollo-db
  8. ports:
  9. - "8080:8080"
  10. - "8070:8070"
  11. links:
  12. - apollo-db
  13. apollo-db:
  14. image: mysql:5.7
  15. container_name: apollo-db
  16. environment:
  17. TZ: Asia/Shanghai
  18. MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
  19. depends_on:
  20. - apollo-dbdata
  21. ports:
  22. - "13306:3306"
  23. volumes:
  24. - ./sql:/docker-entrypoint-initdb.d
  25. volumes_from:
  26. - apollo-dbdata
  27. apollo-dbdata:
  28. image: alpine:latest
  29. container_name: apollo-dbdata
  30. volumes:
  31. - /var/lib/mysql