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.
This commit is contained in:
GotthardG 2025-04-10 00:52:58 +02:00
parent 7dc7e32c33
commit f54ffd138a
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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
},
},
};
});