ddev / ddev-sqlsrv

MS SQL server add-on for DDEV
Apache License 2.0
2 stars 5 forks source link

Cannot have multiple ddev projects running with this add-on #19

Open soapboxcommunication opened 7 months ago

soapboxcommunication commented 7 months ago

Thanks for the add-on! If I tried to ddev start 2+ projects with this running, I get the following error re port usage:

Error response from daemon: driver failed programming external connectivity on endpoint ddev-projectnam-sqlsrv (hash-here): Bind for 0.0.0.0:1433 failed: port is already allocated

Minor issue as I can of course stop other ddev projects but thought I would raise.

stasadev commented 7 months ago

HI @soapboxcommunication,

You can set a different port MSSQL_EXTERNAL_PORT in .ddev/.env for another project.

robertoperuzzo commented 6 months ago

Hi @soapboxcommunication, have you fixed using a different MSSQL_EXTERNAL_PORT for each project?

rfay commented 6 months ago

Why does it need an "external port" here:

https://github.com/ddev/ddev-sqlsrv/blob/623bfa61588adbb18980d01f86daf94fa58a145d/docker-compose.sqlsrv.yaml#L16-L17

Can it not use expose instead of ports ?