Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/api-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ COPY --from=deps --chown=nestjs:nodejs /app/packages ./packages

USER nestjs

EXPOSE 3001
EXPOSE 3002

CMD ["node", "dist/main.js"]
4 changes: 2 additions & 2 deletions backend/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
context: ..
dockerfile: backend/api-server/Dockerfile
ports:
- "3001:3001"
- "3002:3002"
environment:
- NODE_ENV=production
restart: unless-stopped
Expand All @@ -27,7 +27,7 @@ services:
context: ..
dockerfile: backend/ticket-server/Dockerfile
ports:
- "3002:3002"
- "3001:3001"
environment:
- NODE_ENV=production
restart: unless-stopped
Expand Down
2 changes: 1 addition & 1 deletion backend/ticket-server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ REDIS_TICKET_PORT=6380
REDIS_TICKET_PASSWORD=

# Performance API
PERFORMANCE_API_URL=http://localhost:3000
PERFORMANCE_API_URL=http://localhost:3002

# Ticketing Cycle
# Setup 간격 (Cron format, 매 5분되기 1분 전. 4분, 9분, 14분 19분, ...)
Expand Down
2 changes: 1 addition & 1 deletion backend/ticket-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ COPY --from=deps --chown=nestjs:nodejs /app/packages ./packages

USER nestjs

EXPOSE 3002
EXPOSE 3001

CMD ["node", "dist/main.js"]
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface VenueResponse {
export class PerformanceApiService {
private readonly logger = new Logger(PerformanceApiService.name);
private readonly baseUrl =
process.env.PERFORMANCE_API_URL || 'http://localhost:3000';
process.env.PERFORMANCE_API_URL || 'http://localhost:3002';

constructor(private readonly httpService: HttpService) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ export class TicketSchedulerService implements OnModuleInit, OnModuleDestroy {
await this.setupService.openTicketing();

await this.delay(this.duration);
await this.setupService.tearDown();

this.logger.log('Ticketing cycle completed successfully.');
} catch (e) {
const err = e as Error;
this.logger.error(`Ticketing cycle failed: ${err.message}`, err.stack);
} finally {
await this.setupService.tearDown();
}
}
Expand Down