add
This commit is contained in:
parent
56328750f0
commit
a0b7f22a25
|
@ -4,9 +4,9 @@ TIMEZONE=Asia/Singapore
|
|||
POSTGRES_VERSION=latest
|
||||
|
||||
# PostgreSQL Env
|
||||
POSTGRES_DB=nice
|
||||
POSTGRES_DB=db
|
||||
POSTGRES_USER=nice
|
||||
POSTGRES_PASSWORD=nice
|
||||
POSTGRES_PASSWORD=Letusdoit123
|
||||
|
||||
# Redis 配置
|
||||
REDIS_VERSION=7.2.4
|
||||
|
@ -14,8 +14,8 @@ REDIS_PASSWORD=nice
|
|||
|
||||
# MinIO 配置
|
||||
MINIO_VERSION=latest
|
||||
MINIO_ACCESS_KEY=nice
|
||||
MINIO_SECRET_KEY=nice123
|
||||
MINIO_ACCESS_KEY=nice1234
|
||||
MINIO_SECRET_KEY=nice1234
|
||||
# Elasticsearch 配置
|
||||
ELASTIC_VERSION=9.0.1
|
||||
ELASTIC_PASSWORD=nice_elastic_password
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
ELASTICSEARCH_NODE=http://localhost:9200
|
||||
ELASTICSEARCH_USER=elastic
|
||||
ELASTICSEARCH_PASSWORD=changeme
|
||||
ELASTICSEARCH_PASSWORD=nice_elastic_password
|
||||
MINIO_ENDPOINT=localhost
|
||||
MINIO_PORT=9000
|
||||
MINIO_USE_SSL=false
|
||||
|
|
|
@ -17,6 +17,10 @@ services:
|
|||
- type: volume
|
||||
source: elasticsearch_data
|
||||
target: /usr/share/elasticsearch/data
|
||||
- type: tmpfs
|
||||
target: /tmp
|
||||
tmpfs:
|
||||
size: 1G
|
||||
healthcheck:
|
||||
test: curl -s http://localhost:9200/_cluster/health | grep -v '"status":"red"'
|
||||
interval: 10s
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
import { useQuery } from '@tanstack/react-query';
|
||||
import { useTRPC } from '../trpc';
|
||||
|
||||
export function useHello() {
|
||||
const trpc = useTRPC();
|
||||
trpc.user.getUser.queryOptions()
|
||||
|
||||
// useQuery;
|
||||
return {
|
||||
hello: api.hello,
|
||||
// hello: api.hello,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue