From f54ffd138a56923aeebb76eb00da5bbeb4f3ebe6 Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Thu, 10 Apr 2025 00:52:58 +0200 Subject: [PATCH] Refactor Docker setup and migrate to PostgreSQL Streamlined Dockerfiles with clearer ENV variables and build args. Switched backend database from MySQL to PostgreSQL, updated configurations accordingly, and added robust Docker Compose services for better orchestration, including health checks and persistent storage. --- docker-compose.yml | 1 + logistics/vite.config.ts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index dbb21aa..12e25a3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -84,6 +84,7 @@ services: environment: - VITE_OPENAPI_BASE=${VITE_OPENAPI_BASE} - NODE_ENV=${NODE_ENV} + command: sh -c "npm run start-${ENVIRONMENT}" volumes: # ⬅️ Persistent storage for PostgreSQL data diff --git a/logistics/vite.config.ts b/logistics/vite.config.ts index fc32f99..8912cbd 100644 --- a/logistics/vite.config.ts +++ b/logistics/vite.config.ts @@ -16,6 +16,12 @@ export default defineConfig(({ mode }) => { }, host: '0.0.0.0', port: 3000, + hmr: { + clientPort: 3000, + protocol: 'wss', // explicitly HTTPS Manager explicitly clearly make wss:// clearly listened clearly explicitly. + host: 'mx-aare-test.psi.ch' // explicitly your browser hostname explicitly clearly explicitly + }, + }, }; }); \ No newline at end of file