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
|
||||
- PGPASSWORD=radius
|
||||
networks:
|
||||
- radius_net
|
||||
- principal
|
||||
radius_net:
|
||||
principal:
|
||||
aliases:
|
||||
- radiusnucleo-node
|
||||
|
||||
freeradius:
|
||||
build: ./freeradius
|
||||
|
||||
@@ -20,10 +20,12 @@ export function createApp() {
|
||||
// REST API
|
||||
app.use('/api', apiRouter);
|
||||
|
||||
// Simple health endpoint for reverse proxies / checks
|
||||
app.get('/healthz', (_req, res) => res.json({ ok: true }));
|
||||
|
||||
app.get('/', (_req, res) => {
|
||||
res.sendFile(path.join(__dirname, '..', 'public', 'index.html'));
|
||||
});
|
||||
|
||||
return app;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user