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:
parent
7dc7e32c33
commit
f54ffd138a
@ -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
|
||||
|
@ -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
|
||||
},
|
||||
|
||||
},
|
||||
};
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user