docker-compose.yml 407 B

12345678910111213141516171819202122
  1. version: "3.5"
  2. services:
  3. ant-design-pro_build:
  4. build: ../
  5. container_name: "ant-design-pro_build"
  6. volumes:
  7. - dist:/usr/src/app/dist
  8. ant-design-pro_web:
  9. image: nginx
  10. ports:
  11. - 80:80
  12. container_name: "ant-design-pro_web"
  13. restart: unless-stopped
  14. volumes:
  15. - dist:/usr/share/nginx/html:ro
  16. - ./nginx.conf:/etc/nginx/conf.d/default.conf
  17. volumes:
  18. dist: