Skip to content

Commit

Permalink
fix(#151): dockername change
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh000526 committed Dec 3, 2024
1 parent 97379ba commit 3c7251a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/backend/src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export enum SUPPORTED_LANGUAGES {
JS = '.js'
}

export const MAX_CONTAINER_CNT = 10;
export const MAX_CONTAINER_CNT = 5;
4 changes: 2 additions & 2 deletions apps/backend/src/docker/docker.pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class DockerContainerPool implements OnApplicationBootstrap {
const containersToDelete = await this.docker.listContainers({ all: true });
await Promise.all(
containersToDelete
.filter((container) => container.Names.some((name) => name.startsWith('/froxy-run')))
.filter((container) => container.Names.some((name) => name.startsWith('/froxy-always')))
.map(async (container) => {
const removeContainer = await this.docker.getContainer(container.Id);
await removeContainer.remove({ force: true });
Expand Down Expand Up @@ -55,7 +55,7 @@ export class DockerContainerPool implements OnApplicationBootstrap {
'NODE_DISABLE_COLORS=true', // 색상 비활성화
'TERM=dumb' // dumb 터미널로 설정하여 색상 비활성화
],
name: `froxy-run${i + 1}`,
name: `froxy-always${i + 1}`,
HostConfig: {
Memory: (1024 * 1024 * 1024) / 2, // 1GB 메모리 제한
MemorySwap: (1024 * 1024 * 1024) / 2 // swap 메모리도 1GB로 설정
Expand Down

0 comments on commit 3c7251a

Please sign in to comment.