docker-compose.debug.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. services:
  2. # App service ------------------------------------------------------------------------------------------------------
  3. app:
  4. volumes: !override
  5. - ./:/var/www
  6. - ./docker/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
  7. - ./storage/logs/php:/var/log/php8
  8. environment:
  9. PHP_IDE_CONFIG: serverName=_
  10. # Queue service ----------------------------------------------------------------------------------------------------
  11. app-queue:
  12. volumes: !override
  13. - ./:/var/www
  14. - ./docker/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
  15. - ./storage/logs/php:/var/log/php8
  16. environment:
  17. PHP_IDE_CONFIG: serverName=_
  18. # Vite Service ----------------------------------------------------------------------------------------------------
  19. vite:
  20. build:
  21. context: .
  22. dockerfile: docker/nginx/Dockerfile
  23. restart: unless-stopped
  24. tty: true
  25. command: '/bin/sh -c ''npm run dev'''
  26. ports:
  27. - 5172:5172
  28. volumes:
  29. - ./public:/var/frontend
  30. - ./:/var/www
  31. - ./docker/nginx/conf.d/:/etc/nginx/conf.d/
  32. networks:
  33. - cpa-network
  34. # Database service -------------------------------------------------------------------------------------------------
  35. db:
  36. ports:
  37. - ${DB_EXT_PORT}:3306
  38. # Websocket service ------------------------------------------------------------------------------------------------
  39. websocket:
  40. command: '/bin/sh -c ''node --inspect=0.0.0.0:9229 server'''
  41. ports: !override
  42. - ${WS_PORT:-3000}:3000
  43. - ${WS_DEBUG_PORT:-9229}:9229