refactor(worker): no need to mount host
This commit is contained in:
parent
fb861e26be
commit
769f671749
4 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 },
|
||||
|
|
Loading…
Reference in a new issue