From a055ab0d126e90b20a4bc635c3f11ebe06011a6f Mon Sep 17 00:00:00 2001 From: David Jiang Date: Tue, 14 Jan 2025 22:24:47 +0800 Subject: [PATCH] fix: docker & change port --- Backend/docker-compose.yml | 4 ++-- Backend/src/main.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Backend/docker-compose.yml b/Backend/docker-compose.yml index 5985fe3..dd013cc 100644 --- a/Backend/docker-compose.yml +++ b/Backend/docker-compose.yml @@ -60,7 +60,7 @@ services: MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mysql_root_password MYSQL_DATABASE: AUTHDB volumes: - - mysql_data:/var/lib/mysql + - db_data:/var/lib/mysql - ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh - ./database.sql:/docker-entrypoint-initdb.d/database.sql secrets: @@ -87,7 +87,7 @@ services: volumes: letsencrypt: driver: local - mysql_data: + db_data: driver: local redis: driver: local diff --git a/Backend/src/main.ts b/Backend/src/main.ts index a62924a..3438aa4 100644 --- a/Backend/src/main.ts +++ b/Backend/src/main.ts @@ -52,6 +52,6 @@ async function bootstrap() { origin: process.env.PASSKEY_ORIGIN, }); - await app.listen(3001); + await app.listen(3000); } bootstrap();