Skip to content

Commit

Permalink
fix(#151): container network
Browse files Browse the repository at this point in the history
  • Loading branch information
mjh000526 committed Dec 3, 2024
1 parent 0a5eb29 commit 4585184
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion apps/backend/src/docker/docker.pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export class DockerContainerPool implements OnApplicationBootstrap {
}

async createAlwaysContainer() {
const network = await this.docker.getNetwork('froxy-network');
for (let i = 0; i < MAX_CONTAINER_CNT; i++) {
const container = await this.docker.createContainer({
Image: 'node:latest',
Expand Down
2 changes: 1 addition & 1 deletion apps/backend/src/docker/docker.producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DockerContainerPool } from './docker.pool';
export class DockerProducer implements OnApplicationBootstrap {
cnt = 0;
constructor(
@InjectQueue('docker-queue')
@InjectQueue('always-queue')
private readonly dockerQueue: Queue,
private dockerContainerPool: DockerContainerPool
) {}
Expand Down

0 comments on commit 4585184

Please sign in to comment.