Giter Site home page Giter Site logo

Comments (8)

zeograd avatar zeograd commented on July 20, 2024 2

Yes, that did the trick and I wrongly assumed that was the default behaviour.
Thanks a lot.

from community-edition.

MoryCorp avatar MoryCorp commented on July 20, 2024

Could you try a "docker ps" to list all running containers to check if there's one already running on port 80

from community-edition.

zeograd avatar zeograd commented on July 20, 2024

It looks like there is no other container claiming this port. Actually, none before, and after running the docker-compose command, only the db and mail containers from plausible itself.
I'm using docker Docker version 18.09.1, build 4c52b90 if that matters.

olivier@nausicaa:~/work/hosting$ docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

olivier@nausicaa:~/work/hosting$ docker-compose up --detach
Creating hosting_plausible_events_db_1 ... done
Creating hosting_mail_1                ... done
Creating hosting_plausible_db_1        ... done
Recreating 08bc5c668828_hosting_plausible_1 ... error

ERROR: for 08bc5c668828_hosting_plausible_1  Cannot start service plausible: driver failed programming external connectivity on endpoint hosting_plausible_1 (d414e0f9b123cde5b10a4cf62ae0ef69b703aca2faa8236783ce1eeffa89867d): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use

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

olivier@nausicaa:~/work/hosting$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
47671f54c99d        bytemark/smtp       "docker-entrypoint.sā€¦"   12 seconds ago      Up 7 seconds        25/tcp              hosting_mail_1
751d0462d5c7        postgres:12         "docker-entrypoint.sā€¦"   12 seconds ago      Up 7 seconds        5432/tcp            hosting_plausible_db_1

from community-edition.

MoryCorp avatar MoryCorp commented on July 20, 2024

Could you try something like : sudo lsof -i -P -n | grep 80
Should list all services using port "80"

from community-edition.

zeograd avatar zeograd commented on July 20, 2024

I do have apache running on my host on port 80 (intended to be configured as reverse proxy in a later step)

olivier@nausicaa:~/work/hosting$ sudo lsof -i :80
COMMAND   PID     USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
...
apache2    2307           root    4u  IPv6   35010      0t0  TCP *:80 (LISTEN)
apache2    5834       www-data    4u  IPv6   35010      0t0  TCP *:80 (LISTEN)
apache2    5842       www-data    4u  IPv6   35010      0t0  TCP *:80 (LISTEN)
apache2    5843       www-data    4u  IPv6   35010      0t0  TCP *:80 (LISTEN)
apache2    5845       www-data    4u  IPv6   35010      0t0  TCP *:80 (LISTEN)
apache2    5846       www-data    4u  IPv6   35010      0t0  TCP *:80 (LISTEN)
...```

from community-edition.

MoryCorp avatar MoryCorp commented on July 20, 2024

I'm not sure I understand what you're trying to do with Apache but if you want to run multiple services on port 80, I created this repository to run Plausible.io with Traefik 2 as a reverse proxy.

https://github.com/MoryCorp/Plausible.io-behind-Traefik2

Would this help ?

from community-edition.

zeograd avatar zeograd commented on July 20, 2024

So it's most probably a misunderstanding on my side regarding the port usage of this docker setup.
I'll dig into this other repo and will close this issue as of now.
Thanks for having taken time to help me and sorry for the inconvenience.

from community-edition.

MoryCorp avatar MoryCorp commented on July 20, 2024

Plausible is running on port '8000' but the default docker-compose will map port "8000" to "80"
If you want to run plausible on another port, just to see if it works for example, you could change line '31' of the docker-compose.yml from :

ports:
  - 80:8000

to :

ports:
  - 8000:8000

Then run docker-compose up -d
Plausible should be available at : youdomain.com:8000

from community-edition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.