您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

34 行
463B

  1. version: "2"
  2. services:
  3. db:
  4. build:
  5. context: ./mysql
  6. dockerfile: Dockerfile
  7. networks:
  8. backend:
  9. ipv4_address: 10.5.0.5
  10. app:
  11. build:
  12. context: ./src
  13. dockerfile: Dockerfile
  14. ports:
  15. - "8080:8080"
  16. - "443:443"
  17. depends_on:
  18. - db
  19. networks:
  20. backend:
  21. ipv4_address: 10.5.0.6
  22. networks:
  23. backend:
  24. driver: bridge
  25. ipam:
  26. config:
  27. - subnet: 10.5.0.0/16