ajustement

This commit is contained in:
MathieuSevignyLavallee 2024-12-10 13:32:18 -05:00
parent dd0f5f9534
commit 04ccca91d6
5 changed files with 10 additions and 9 deletions

2
.gitignore vendored
View file

@ -130,7 +130,7 @@ dist
.pnp.*
db-backup/
.env
**/.env
.venv
deployments
/test/stressTest/output

View file

@ -1 +1,2 @@
node_modules
.env

View file

@ -1,6 +1,5 @@
# Target url
BASE_URL=http://msevignyl.duckdns.org
BASE_URL=http://host.docker.internal
# Connection account
USER_EMAIL=admin@admin.com
USER_PASSWORD=admin

View file

@ -7,9 +7,8 @@ services:
context: .
dockerfile: Dockerfile
container_name: stress-test
network_mode: host
#environment:
# - BASE_URL=http://127.0.0.1
# - BASE_URL=http://host.docker.internal
# - USER_EMAIL=admin@admin.com
# - USER_PASSWORD=admin
# - NUMBER_ROOMS=5
@ -19,7 +18,9 @@ services:
# - MESSAGE_RESPONSE_TIMEOUT=5000
# - BATCH_DELAY=1000
# - BATCH_SIZE=10
#env_file:
# - .env
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./output:/app/output

View file

@ -9,7 +9,7 @@ import generateMetricsReport from './utility/metrics_generator.js';
dotenv.config();
const config = {
baseUrl: process.env.BASE_URL || 'http://127.0.0.1',
baseUrl: process.env.BASE_URL || 'http://host.docker.internal',
auth: {
username: process.env.USER_EMAIL || 'admin@admin.com',
password: process.env.USER_PASSWORD || 'admin'