storybook-test.yml 1015 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. version: '3.1'
  2. services:
  3. selenium:
  4. image: selenium/standalone-chrome:3.4.0-francium
  5. volumes:
  6. - /dev/shm:/dev/shm #Mitigates the Chromium issue described at https://code.google.com/p/chromium/issues/detail?id=519952
  7. networks:
  8. - backend
  9. manager-storybook:
  10. container_name: manager_storybook
  11. build:
  12. context: .
  13. dockerfile: Dockerfile
  14. volumes:
  15. - ./src/components:/src/src/components
  16. entrypoint: yarn storybook
  17. depends_on:
  18. - selenium-standalone
  19. networks:
  20. - backend
  21. storybook-test:
  22. container_name: storybook_test
  23. environment:
  24. - DOCKER=true
  25. build:
  26. context: .
  27. dockerfile: Dockerfile
  28. volumes:
  29. - ./src/components:/src/src/components
  30. - ./storybook-test-results:/src/storybook-test-results
  31. - /etc/passwd:/etc/passwd
  32. - /etc/group:/etc/group
  33. entrypoint: ["./scripts/storybook_entrypoint.sh"]
  34. depends_on:
  35. - manager-storybook
  36. networks:
  37. - backend
  38. networks:
  39. backend: