| 1 | services: |
| 2 | mermaid: |
| 3 | build: |
| 4 | context: . |
| 5 | dockerfile: Dockerfile |
| 6 | stdin_open: true |
| 7 | tty: true |
| 8 | working_dir: /mermaid |
| 9 | mem_limit: '8G' |
| 10 | env_file: |
| 11 | - .env |
| 12 | volumes: |
| 13 | - ./:/mermaid |
| 14 | - root_cache:/root/.cache |
| 15 | - root_local:/root/.local |
| 16 | - root_npm:/root/.npm |
| 17 | - /tmp:/tmp |
| 18 | ports: |
| 19 | - ${MERMAID_PORT}:${MERMAID_PORT} |
| 20 | - 3333:3333 |
| 21 | cypress: |
| 22 | image: cypress/included:14.0.3 |
| 23 | stdin_open: true |
| 24 | tty: true |
| 25 | working_dir: /mermaid |
| 26 | mem_limit: '2G' |
| 27 | entrypoint: cypress |
| 28 | environment: |
| 29 | - DISPLAY |
| 30 | volumes: |
| 31 | - ./:/mermaid |
| 32 | - /tmp/.X11-unix:/tmp/.X11-unix |
| 33 | network_mode: host |
| 34 | |
| 35 | volumes: |
| 36 | root_cache: |
| 37 | root_local: |
| 38 | root_npm: |
| 39 | |