exadel-inc / CompreFace

Leading free and open-source face recognition system
https://exadel.com/accelerator-showcase/compreface/
Apache License 2.0
5.69k stars 775 forks source link

Port contention with Portainer (i.e. port 8000) #1229

Closed lschapker closed 9 months ago

lschapker commented 9 months ago

Describe the bug With portainer installed and running, attempting to create a "stack" within portainer (that installs Compreface). Fails with error": "0.0.0.0:8000 already in use."

To Reproduce Installed "portainer" using web page "https://docs.portainer.io/start/install-ce/server/docker/linux" From within within portainer, create a "stack" using compreface's "docker-compose.yml" (including the ".env" file). Press "deploy the stack" Portainer reports:

"... Started Container compreface-ui Starting Error response from daemon: driver failed programming external connectivity on endpoint compreface-ui (247680485a549593f3fa7f7066e9f528c343579446b3bcaf31e40a6ed53fd307): Bind for 0.0.0.0:8000 failed: port is already allocated"

Expected behavior Portainer deploy to actually deploy Compreface

Desktop (please complete the following information):

Logs docker ps (from within the lxc)

root@frigate:~# docker ps
CONTAINER ID   IMAGE                           COMMAND        CREATED       STATUS             PORTS                                                      NAMES
175e76e8bc84   portainer/portainer-ce:latest   "/portainer"   8 weeks ago   Up About an hour   0.0.0.0:8000->8000/tcp, 0.0.0.0:9443->9443/tcp, 9000/tcp   portainer
root@frigate:~# 

docker-compose logs "docker-compose" is not directly installed with the LXC (it functions within the "portainer" container itself).

Additional context

I'm very new to "docker"/"Portainer"/"Docker-compose". I know there is contention between the portainer container and the compreface-ui container, but don't know where (i.e. which) or how to modify the port correctly.

lschapker commented 9 months ago

Answering my own question: Changing "8000:80" to "8800:80" corrects the port contention.