Resolving Port Conflicts

I had a Laravel project that was running on a ubuntu server on my local network. After I installed dgraph and docker nothing will run.

I try to start my laravel project:
php artisan serve --host=192.168.0.200
Failed to listen on 192.168.0.200:8000 (reason: Address already in use)
Laravel development server started: http://192.168.0.200:8001

So it looks like it starts on port 8001

If I navigate to http://192.168.0.200:8001 in my browser I get: “This site can’t be reached”

If I run: docker-compose up -d
Starting pyshql_ratel_1 … error
Starting pyshql_zero_1 …
Starting pyshql_server_1 …

Starting pyshql_zero_1 … done
Starting pyshql_server_1 … done

ERROR: for ratel Cannot start service ratel: driver failed programming external connectivity on endpoint pyshql_ratel_1 (b025533be1189953b79e794d8d789604bfdf5793eeefd0833fafe018ee4b2823): Error starting userland proxy: listen tcp 0.0.0.0:8000: bind: address already in use
ERROR: Encountered errors while bringing up the project.

I’m obviously missing something. I’ve spent a lot of hours on this to no avail. Any help is appreciated.

My goal is to figure out how to connect my laravel project to a Dgraph database. I believe that requires docker and graphql±. I was unable to find instructions for that.

Ratel UI uses this port.

You can use the HTTP API or gRPC. Dgraph has no official PHP client.

However I’m not familiar with Laravel. I could help if you give more details.

Unfortunately, I don’t know what any of that means. Can you provide information on how to uninstall Dgraph please. I can’t find anything in the docs about this. Removing will hopefully allow me to get my Laravel project running again.

Given that you’re running Dgraph with Docker Compose, you can stop those Docker containers either with docker-compose down or by stopping the individual containers with docker stop.