This commit is contained in:
ditiqi 2025-05-27 10:01:56 +08:00
parent 56328750f0
commit a0b7f22a25
4 changed files with 16 additions and 6 deletions

View File

@ -4,9 +4,9 @@ TIMEZONE=Asia/Singapore
POSTGRES_VERSION=latest POSTGRES_VERSION=latest
# PostgreSQL Env # PostgreSQL Env
POSTGRES_DB=nice POSTGRES_DB=db
POSTGRES_USER=nice POSTGRES_USER=nice
POSTGRES_PASSWORD=nice POSTGRES_PASSWORD=Letusdoit123
# Redis 配置 # Redis 配置
REDIS_VERSION=7.2.4 REDIS_VERSION=7.2.4
@ -14,8 +14,8 @@ REDIS_PASSWORD=nice
# MinIO 配置 # MinIO 配置
MINIO_VERSION=latest MINIO_VERSION=latest
MINIO_ACCESS_KEY=nice MINIO_ACCESS_KEY=nice1234
MINIO_SECRET_KEY=nice123 MINIO_SECRET_KEY=nice1234
# Elasticsearch 配置 # Elasticsearch 配置
ELASTIC_VERSION=9.0.1 ELASTIC_VERSION=9.0.1
ELASTIC_PASSWORD=nice_elastic_password ELASTIC_PASSWORD=nice_elastic_password

View File

@ -1,6 +1,6 @@
ELASTICSEARCH_NODE=http://localhost:9200 ELASTICSEARCH_NODE=http://localhost:9200
ELASTICSEARCH_USER=elastic ELASTICSEARCH_USER=elastic
ELASTICSEARCH_PASSWORD=changeme ELASTICSEARCH_PASSWORD=nice_elastic_password
MINIO_ENDPOINT=localhost MINIO_ENDPOINT=localhost
MINIO_PORT=9000 MINIO_PORT=9000
MINIO_USE_SSL=false MINIO_USE_SSL=false

View File

@ -17,6 +17,10 @@ services:
- type: volume - type: volume
source: elasticsearch_data source: elasticsearch_data
target: /usr/share/elasticsearch/data target: /usr/share/elasticsearch/data
- type: tmpfs
target: /tmp
tmpfs:
size: 1G
healthcheck: healthcheck:
test: curl -s http://localhost:9200/_cluster/health | grep -v '"status":"red"' test: curl -s http://localhost:9200/_cluster/health | grep -v '"status":"red"'
interval: 10s interval: 10s

View File

@ -1,6 +1,12 @@
import { useQuery } from '@tanstack/react-query';
import { useTRPC } from '../trpc';
export function useHello() { export function useHello() {
const trpc = useTRPC();
trpc.user.getUser.queryOptions()
// useQuery;
return { return {
hello: api.hello, // hello: api.hello,
}; };
} }