refactor: Update docker-compose.yml to remove port mapping and remove GPU constants from index.ts

This commit is contained in:
vishalkadam47
2024-10-27 22:00:08 +05:30
parent b3092691b7
commit 3e467959c9
2 changed files with 3 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ services:
- TZ=Etc/UTC - TZ=Etc/UTC
- SUBFOLDER=/ #optional - SUBFOLDER=/ #optional
ports: ports:
- 3000:3000 - 3000
- 3001:3001 - 3001
restart: unless-stopped restart: unless-stopped
shm_size: 1gb shm_size: 1gb

View File

@@ -37,6 +37,3 @@ export const paths = (isServer = false) => {
REGISTRY_PATH: `${BASE_PATH}/registry`, REGISTRY_PATH: `${BASE_PATH}/registry`,
}; };
}; };
export const GPU_ENABLED = process.env.GPU_ENABLED === 'true';
export const GPU_RESOURCE_NAME = 'DOCKER_RESOURCE_GPU';