Skip to content

Laravel Presets, WebSocket && Queue #368

Discussion options

You must be logged in to vote

Olá @ajmeireles! Agradecemos muito seu interesse no kool! Você pode adicionar mais dois novos serviços no docker-compose.yml, ambos baseados no container que roda a sua aplicação.

A seguir, um exemplo do socket:

socket:
    image: NOME_DO_CONTAINER_DA_SUA_APPLICACAO
    command: ["php", "artisan", "websockets:serve"]
    ports:
     - "${KOOL_SOCKET_PORT:-6001}:6001"
    environment:
      ASUSER: "${KOOL_ASUSER:-0}"
      UID: "${UID:-0}"
    volumes:
     - .:/app:delegated
    networks:
      - kool_local
      - kool_global

Para as filas, a ideia seria algo parecido, porém ao invés do comando websocket:serve, seria queue:listen...e não haverá a necessidade de expôr a porta...


You can…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@devajmeireles
Comment options

@danielsuguimoto
Comment options

Answer selected by devajmeireles
Comment options

You must be logged in to vote
2 replies
@danielsuguimoto
Comment options

@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants