Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vincent15000's avatar

Soketi : use custom credentials and custom port in docker

Hello,

I have read this documentation.

https://docs.soketi.app/app-management/array-driver

Docker is configured like this.

soketi:
    image: 'quay.io/soketi/soketi:1.6.1-16-alpine'
    container_name: dev-yggdra-soketi
    environment:
        SOKETI_DEBUG: '0'
        DEFAULT_APP_ID: '{PUSHER_APP_ID}'
        DEFAULT_APP_KEY: '{PUSHER_APP_KEY}'
        DEFAULT_APP_SECRET: '{PUSHER_APP_SECRET}'
        SOKETI_PORT: '{PUSHER_PORT}'
    ports:
        - 6001:6001
    networks:
        - sail

It works only when PUSHER_APP_KEY is set to app-key value.

Any other value generates an error just saying that there was a problem during the handshake.

Furthermore I have found 2 different examples with SOKETI_DEBUG and SOKETI_PORT and also with DEBUG and PORT.

Can you help me understand what is the problem ?

Thanks a lot.

V

0 likes
1 reply
vincent15000's avatar
vincent15000
OP
Best Answer
Level 63

I have found how to do.

Given that the variables are used outside the CLI, I have to prefix all variables with SOKETI_.

And it works fine.

Please or to participate in this conversation.