title: How to use Laravel docker container & MySQL DB with a Vue one?
body: <p>I have an app which uses <strong>Vue CLI as a front-end</strong> and <strong>Laravel as a back-end</strong>. Now I am trying to launch my app on a server using docker.</p>
  <p>My docker skills can only allow me one thing: Vue docker container. But as far as I have to use Laravel as a back-end I have to create a container for that too (+ MySQL, of course).</p>
  <p>So here what I've got: <strong>Dockerfile</strong></p>
  <pre><code>FROM node:lts-alpine
  WORKDIR /app
  COPY package*.json ./
  RUN  npm install
  EXPOSE 8080
  CMD [&quot;npm&quot;, &quot;run&quot;, &quot;serve&quot;]
  </code></pre>
  <p><strong>docker-compose.yml</strong></p>
  <pre><code>version: '3'
  services:
      web:
          build: .
          stdin_open: true
          tty: true
          ports: 
              - &quot;8080:8080&quot;
          volumes:
              - &quot;/app/node_modules&quot; 
              - &quot;.:/app&quot;
  </code></pre>
  <p>The problem is that I understand how to connect Laravel into <strong>Dockerfile</strong>. It just doesn't add up in my mind.</p>
  <p>May be I should use <strong>Ubuntu</strong>, not just <strong>node</strong>? Anyways, I'm asking once again for your support</p>