### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

The documentation states that when setting DYNAMODB_SHARE_DB=1 DynamodDB will use a single database for each credential and region. This doesn't work when LocalStack is started from CLI. For example:

`DYNAMODB_SHARE_DB=1 localstack start -d`

In Docker logs you can find:
INFO:localstack.services.dynamodb.server: SharedDb:     false

At least it seems that the environment variable is missing from CONFIG_ENV_VARS which is used for passing the environment variables to container.

Tried the following fix and at least after brief testing it solves the issue:
https://github.com/jvuori/localstack/commit/6bb4a3c68c8675b9548e0f5eb8028397d9ee5a47
Feel free to pull if the fix is appropriate. (Sorry, no unit test...)

### Expected Behavior

`DYNAMODB_SHARE_DB=1 localstack start -d`
should start DynamoDB with:

INFO:localstack.services.dynamodb.server: SharedDb:     true

### How are you starting LocalStack?

With the `localstack` script

### Steps To Reproduce

#### How are you starting localstack (e.g., `bin/localstack` command, arguments, or `docker-compose.yml`)

DYNAMODB_SHARE_DB=1 localstack start -d


### Environment

```markdown
- OS: Windows + WSL2 + Docker CE running inside WSL2
- LocalStack: 0.14.1
```


### Anything else?

_No response_
service_key = service_key.lower()
    if external:
        if service_key == "sqs" and SQS_PORT_EXTERNAL:
            return SQS_PORT_EXTERNAL
    if FORWARD_EDGE_INMEM:
        if service_key == "elasticsearch":
            
            
            
            return SERVICE_PORTS.get(service_key, 0)
        return get_edge_port_http()
    return SERVICE_PORTS.get(service_key, 0)
def get_protocol():
    return "https" if USE_SSL else "http"
def service_url(service_key, host=None, port=None):
    host = host or LOCALHOST
    port = port or service_port(service_key)
    return f"{get_protocol()}://{host}:{port}"
def external_service_url(service_key, host=None, port=None):