Skip to content

Alternative proposed solution to launch the docker image on custom ports does not work (HTTPS) #2188

@axi

Description

@axi

In symfony/index.md

   Alternatively, run the following command to start the web server on port `8080` with HTTPS disabled:
   ```console
   SERVER_NAME=localhost:80 HTTP_PORT=8080 TRUSTED_HOSTS=localhost docker compose up --wait`
   ```

On my local with port 80 & 443 already in use, this create the following error:

Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint api-platform-tryout-php-1 (20b5f265ace433a4334274db43bbf3f13d495393ccc19085f80b21efbe048f6b): failed to bind host port for 0.0.0.0:443:172.31.0.4:443/tcp: address already in use

This command doesn't disable HTTPS.
Feature that introduce this alternative method is #1980

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions