Metadrop / drupal-boilerplate

Drupal projects up and running with Docker and many other tools in minutes
28 stars 23 forks source link

Avoid 'port collision' #30

Closed Eduardo-Morales-Alberti closed 3 years ago

Eduardo-Morales-Alberti commented 3 years ago
ERROR: for traefik  Cannot start service traefik: driver failed programming external connectivity on endpoint example_traefik (128fe0fe0b5fb6ed9313d45deac65dbff40db50722d72332f7dae2d770b7e68f): Bind for 0.0.0.0:8444 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.

Do not set the external port, only the internal docker port. Example:

  traefik:
    ports:
     - '80'
     - '443'

Then show the url, and set it on the multiple files, like local.drush.yml

docker-compose port traefik 80
0.0.0.0:32769
Eduardo-Morales-Alberti commented 3 years ago

Related pull request https://github.com/Metadrop/scripthor/pull/10

omarlopesino commented 3 years ago

Thanks! We can consider this finished as the MR is merged, and the boilerplate requires the latest version of the library. Closing.