Laravel Presets, WebSocket && Queue #368
-
Olá! Primeiramente gostaria de agradecer o trabalho de vocês com o desenvolvimento do Kool. Bom, sou desenvolvedor Laravel e gostaria de utilizar o Kool para gerenciar o meu ambiente de trabalho. Entretanto estudando a documentação dele, me surgiu algumas dúvidas que gostaria de saná-las: Dúvidas:
Muito obrigado desde já! Hi! First of all I would like to thank to the Kool team for your work with the development of Kool. Well, I'm a Laravel developer and I would like to use Kool to manage my desktop application enviroment. However, studying his documentation, I had some doubts that I would like to resolve: Doubts:
Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Olá @ajmeireles! Agradecemos muito seu interesse no kool! Você pode adicionar mais dois novos serviços no 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 You can add two services to your Websocket example: socket:
image: YOUR_APP_SERVICE_NAME (e.g.: my-project_app)
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 About the jobs queue, the idea is basically the same, but the command is |
Beta Was this translation helpful? Give feedback.
-
Any change to write in English as well? If somebody needs then can follow. The google translator results are not fine :) |
Beta Was this translation helpful? Give feedback.
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:
Para as filas, a ideia seria algo parecido, porém ao invés do comando
websocket:serve
, seriaqueue:listen
...e não haverá a necessidade de expôr a porta...You can…