version: '3.7'
services:
  js:
    build:
      context: .
      dockerfile: ./docker/js/Dockerfile
    volumes:
      - ./deps/greasyfork:/app/deps/greasyfork:rw
      - ./tmp/cache/js/root-cache:/root/.cache:rw
      - ./tmp/cache/js/root-yarn:/root/.yarn:rw
      - ./docker/js:/app/docker/js:ro
      - ./tmp/cache/js:/app/tmp/cache/js:rw
    deploy:
      resources:
        limits:
          cpus: 1.5
          memory: 1G
