add global docker setting

update env.example, add docker-compose.yml for start all services
This commit is contained in:
poturaevpetr
2026-04-22 18:27:32 +05:00
parent eda348deea
commit c32f3e12ec
7 changed files with 153 additions and 6 deletions
+3 -1
View File
@@ -4,7 +4,9 @@ import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors({ origin: [/^http:\/\/localhost:\d+$/] });
app.enableCors({
origin: [/^http:\/\/localhost:\d+$/, /^http:\/\/127\.0\.0\.1:\d+$/],
});
await app.listen(process.env.PORT ?? 3000);
}
bootstrap();