fix
This commit is contained in:
11
docker-compose.override.yml
Normal file
11
docker-compose.override.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
version: "3.9"
|
||||||
|
|
||||||
|
services:
|
||||||
|
node:
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
volumes:
|
||||||
|
- ./node-api/index.js:/app/index.js:ro
|
||||||
|
- ./node-api/src:/app/src:ro
|
||||||
|
- ./frontend/dist:/app/public:ro
|
||||||
|
|
||||||
@@ -19,8 +19,10 @@ services:
|
|||||||
- PGUSER=radius
|
- PGUSER=radius
|
||||||
- PGPASSWORD=radius
|
- PGPASSWORD=radius
|
||||||
networks:
|
networks:
|
||||||
- radius_net
|
radius_net:
|
||||||
- principal
|
principal:
|
||||||
|
aliases:
|
||||||
|
- radiusnucleo-node
|
||||||
|
|
||||||
freeradius:
|
freeradius:
|
||||||
build: ./freeradius
|
build: ./freeradius
|
||||||
|
|||||||
@@ -20,10 +20,12 @@ export function createApp() {
|
|||||||
// REST API
|
// REST API
|
||||||
app.use('/api', apiRouter);
|
app.use('/api', apiRouter);
|
||||||
|
|
||||||
|
// Simple health endpoint for reverse proxies / checks
|
||||||
|
app.get('/healthz', (_req, res) => res.json({ ok: true }));
|
||||||
|
|
||||||
app.get('/', (_req, res) => {
|
app.get('/', (_req, res) => {
|
||||||
res.sendFile(path.join(__dirname, '..', 'public', 'index.html'));
|
res.sendFile(path.join(__dirname, '..', 'public', 'index.html'));
|
||||||
});
|
});
|
||||||
|
|
||||||
return app;
|
return app;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user