modificata la porta MySQL
This commit is contained in:
parent
747365556f
commit
4bbdd64f48
2 changed files with 13 additions and 1 deletions
|
|
@ -10,7 +10,10 @@ services:
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
DB_HOST: mysql
|
DB_HOST: mysql
|
||||||
DB_PORT: 3311
|
DB_PORT: 3306
|
||||||
|
DB_NAME: ${MYSQL_DATABASE}
|
||||||
|
DB_USER: ${MYSQL_USER}
|
||||||
|
DB_PASSWORD: ${MYSQL_PASSWORD}
|
||||||
PORT: 3011
|
PORT: 3011
|
||||||
FRONTEND_URL: https://esameits24-26frontend.andreavillari.it
|
FRONTEND_URL: https://esameits24-26frontend.andreavillari.it
|
||||||
AUTH_URL: https://esameits24-26backend.andreavillari.it
|
AUTH_URL: https://esameits24-26backend.andreavillari.it
|
||||||
|
|
|
||||||
9
scripts/apply-test-users.sql
Normal file
9
scripts/apply-test-users.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
-- Eseguire manualmente su un database già esistente se gli utenti di test non sono presenti.
|
||||||
|
-- Password per tutti: Password123!
|
||||||
|
|
||||||
|
USE `esameits24-26`;
|
||||||
|
|
||||||
|
INSERT IGNORE INTO utente (Nome, Cognome, Email, PasswordHash, Ruolo) VALUES
|
||||||
|
('Andrea', 'Villari', 'admin@example.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', 'Amministratore'),
|
||||||
|
('Maria', 'Bianchi', 'maria.bianchi@example.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', 'Operatore'),
|
||||||
|
('Luca', 'Conti', 'luca.conti@example.it', '$2b$10$7Z80qZcDydZCdLrOcaH/VOa9knKWjQVyyg8MtEgBAvgfNMsiLEZze', 'Operatore');
|
||||||
Loading…
Add table
Reference in a new issue