Running Memgraph Platform with Docker Compose

:bug: Bug Report


Trying to run the memgraph/memgraph-platform image with Docker Compose.
The container starts but exits right away with code 0.

Steps to reproduce

  1. Create a docker-compose.yml file:
version: "3"
    image: memgraph/memgraph-platform
      - "3000:3000"
      - "7687:7687"
  1. Start the container with:
docker-compose up

Expected behavior

Memgraph should start and Memgraph Lab should be accessible at http://localhost:3000.

Actual behavior

The container stops and prints out the following message:

memgraph-dev_memgraph-platform_1 exited with code 0

Your environment

  • Memgraph 2.0.1
  • Ubuntu 20.04.2 LTS

I was toying with the platform . I think it exits because it has the mgconsole image. And that container needs to be attached to the output.

I ended up running the barebones memgraph and compiled the console, so i can access the db without going thru the docker pain.