docker-compose.yml 802 B

1234567891011121314151617181920212223242526272829303132
  1. name: ydb-php-examples
  2. services:
  3. ydb-local:
  4. image: cr.yandex/yc/yandex-docker-local-ydb:latest
  5. ports:
  6. - 127.0.0.1:2135:2135
  7. - 127.0.0.1:2136:2136
  8. - 127.0.0.1:8765:8765
  9. volumes:
  10. # - ./ydb_data:/ydb_data
  11. - ./ydb_certs:/ydb_certs
  12. environment:
  13. GRPC_TLS_PORT: 2135
  14. GRPC_PORT: 2136
  15. MON_PORT: 8765
  16. YDB_DEFAULT_LOG_LEVEL: NOTICE
  17. YDB_USE_IN_MEMORY_PDISKS: true
  18. ydb-app:
  19. image: thecodingmachine/php:8.0-v4-cli
  20. depends_on:
  21. - ydb-local
  22. volumes:
  23. - .:/usr/src/app
  24. command: sh -c "composer install && php console select1"
  25. environment:
  26. PHP_EXTENSION_GRPC: 1
  27. PHP_EXTENSION_BCMATH: 1
  28. DB_ENDPOINT: ydb-local:2136
  29. DB_DATABASE: /local
  30. YDB_ANONYMOUS: true
  31. YDB_INSECURE: true