領収証発行サービス
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.6KB

  1. version: '3'
  2. services:
  3. laravel.test:
  4. build:
  5. context: ./docker/8.2
  6. dockerfile: Dockerfile
  7. args:
  8. WWWGROUP: '${WWWGROUP}'
  9. image: sail-8.2/app
  10. extra_hosts:
  11. - 'host.docker.internal:host-gateway'
  12. ports:
  13. - '${APP_PORT:-80}:80'
  14. - '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
  15. environment:
  16. WWWUSER: '${WWWUSER}'
  17. LARAVEL_SAIL: 1
  18. XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
  19. XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
  20. volumes:
  21. - '.:/var/www/html'
  22. networks:
  23. - sail
  24. depends_on:
  25. - pgsql
  26. pgsql:
  27. image: 'postgres:15'
  28. ports:
  29. - '${FORWARD_DB_PORT:-5432}:5432'
  30. environment:
  31. PGPASSWORD: '${DB_PASSWORD:-secret}'
  32. POSTGRES_DB: '${DB_DATABASE}'
  33. POSTGRES_USER: '${DB_USERNAME}'
  34. POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
  35. volumes:
  36. - 'sail-pgsql:/var/lib/postgresql/data'
  37. - './vendor/laravel/sail/database/pgsql/create-testing-database.sql:/docker-entrypoint-initdb.d/10-create-testing-database.sql'
  38. networks:
  39. - sail
  40. healthcheck:
  41. test:
  42. - CMD
  43. - pg_isready
  44. - '-q'
  45. - '-d'
  46. - '${DB_DATABASE}'
  47. - '-U'
  48. - '${DB_USERNAME}'
  49. retries: 3
  50. timeout: 5s
  51. networks:
  52. sail:
  53. driver: bridge
  54. volumes:
  55. sail-pgsql:
  56. driver: local