Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Problem with Docker #81

@T0miii

Description

@T0miii

Hello,

im trying to make Websocket work with my Dev Docker setup, but there is still some problem i cant figure out.
This is my docker-compose.yaml i start the Websocket Server in its own container its upp and running

  websocket:
    image: docker-registry.company.com/cx_dev_app:latest
    working_dir: /www/
    volumes:
      # Projects
      - ../vme/.:/www/vme
      - ./app/cron.d/.:/etc/my.cron.d
      - ./app/startup.sh:/startup.sh
      - ./app/websocket.sh:/websocket.sh

    command: ["sh", "-c", "php /www/vme/artisan websockets:serve --host=0.0.0.0"]
    ports:
      - "6001:6001"
    expose:
      - "6001"
    environment:
    depends_on:
      - app
    networks:
      app_net:
        ipv4_address: xxx.29.0.88

The Server is up and runing:
websocket_1 | Starting the WebSocket server on port 6001...

broadcasting.php:

        'pusher' => [
            'driver' => 'pusher',
            'key' => env('PUSHER_APP_KEY'),
            'secret' => env('PUSHER_APP_SECRET'),
            'app_id' => env('PUSHER_APP_ID'),
            'options' => [
                'cluster' => env('PUSHER_APP_CLUSTER'),
                'host' => 'websocket',
                'port' => 6001,
                'encrypted' => true,
                'scheme' => 'http'
            ],
        ],

and the bootstrap.js:

window.Echo = new Echo({
    broadcaster: 'pusher',
    key: 'vme-key',
    wsHost: window.location.hostname,
    wsPort: 6001,
    disableStats: true,
});

When i refresh my page i get following error:
image

Sadly could not find anything similar to this Issue.

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