refactor(worker): no need to mount host

This commit is contained in:
Stavros 2023-11-22 15:28:32 +02:00 committed by Nicolas Meienberger
parent fb861e26be
commit 769f671749
4 changed files with 1 additions and 4 deletions

View file

@ -80,7 +80,6 @@ services:
# Dev mode
- ${PWD}/packages/worker/src:/app/packages/worker/src
# Production mode
- /:/mnt/host:ro
- /proc:/host/proc:ro
- /var/run/docker.sock:/var/run/docker.sock
- ${PWD}/.env:/app/.env

View file

@ -76,7 +76,6 @@ services:
environment:
NODE_ENV: production
volumes:
- /:/mnt/host:ro
- /proc:/host/proc
- /var/run/docker.sock:/var/run/docker.sock
- ${PWD}/.env:/app/.env

View file

@ -78,7 +78,6 @@ services:
NODE_ENV: production
volumes:
# Core
- /:/mnt/host:ro
- /proc:/host/proc
- /var/run/docker.sock:/var/run/docker.sock
# App

View file

@ -36,7 +36,7 @@ export class SystemExecutors {
this.logger.error(`Unable to read /host/proc/meminfo: ${e}`);
}
const [disk0] = await si.fsSize('/mnt/host');
const [disk0] = await si.fsSize();
return {
cpu: { load: currentLoad },