fix chnage
This commit is contained in:
parent
dde7d885ae
commit
7184a23f5d
@ -28,7 +28,11 @@
|
||||
"Bash(npm rebuild:*)",
|
||||
"Bash(npm uninstall:*)",
|
||||
"Bash(PGPASSWORD=xpeditis_password psql -h localhost -p 5432 -U xpeditis -d xpeditis_db -c \"SELECT id FROM organizations WHERE type = ''FREIGHT_FORWARDER'' LIMIT 1;\")",
|
||||
"Bash(PGPASSWORD=xpeditis_dev_password psql -h localhost -p 5432 -U xpeditis -d xpeditis_dev -c \"SELECT id, name FROM organizations WHERE type = ''FREIGHT_FORWARDER'' LIMIT 1;\")"
|
||||
"Bash(PGPASSWORD=xpeditis_dev_password psql -h localhost -p 5432 -U xpeditis -d xpeditis_dev -c \"SELECT id, name FROM organizations WHERE type = ''FREIGHT_FORWARDER'' LIMIT 1;\")",
|
||||
"Bash(docker-compose:*)",
|
||||
"Bash(npm run start:dev:*)",
|
||||
"Bash(findstr:*)",
|
||||
"Bash(taskkill:*)"
|
||||
],
|
||||
"deny": [],
|
||||
"ask": []
|
||||
|
||||
@ -78,9 +78,10 @@ import { CustomThrottlerGuard } from './application/guards/throttle.guard';
|
||||
username: configService.get('DATABASE_USER'),
|
||||
password: configService.get('DATABASE_PASSWORD'),
|
||||
database: configService.get('DATABASE_NAME'),
|
||||
entities: [],
|
||||
entities: [__dirname + '/**/*.orm-entity{.ts,.js}'],
|
||||
synchronize: configService.get('DATABASE_SYNC', false),
|
||||
logging: configService.get('DATABASE_LOGGING', false),
|
||||
autoLoadEntities: true, // Auto-load entities from forFeature()
|
||||
}),
|
||||
inject: [ConfigService],
|
||||
}),
|
||||
|
||||
41
docker-compose.dev.yml
Normal file
41
docker-compose.dev.yml
Normal file
@ -0,0 +1,41 @@
|
||||
services:
|
||||
# PostgreSQL Database
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
container_name: xpeditis-postgres-dev
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
POSTGRES_DB: xpeditis_dev
|
||||
POSTGRES_USER: xpeditis
|
||||
POSTGRES_PASSWORD: xpeditis_dev_password
|
||||
volumes:
|
||||
- postgres_data_dev:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U xpeditis"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
# Redis Cache
|
||||
redis:
|
||||
image: redis:7
|
||||
container_name: xpeditis-redis-dev
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "6379:6379"
|
||||
command: redis-server --requirepass xpeditis_dev_password
|
||||
volumes:
|
||||
- redis_data_dev:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
postgres_data_dev:
|
||||
name: xpeditis_postgres_data_dev
|
||||
redis_data_dev:
|
||||
name: xpeditis_redis_data_dev
|
||||
Loading…
Reference in New Issue
Block a user