Skip to content

Commit

Permalink
Update containers name on production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dsousa12 committed May 6, 2022
1 parent f31b54d commit fd72c90
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/modules/boards/schemas/board.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class Board {

export const BoardSchema = SchemaFactory.createForClass(Board);

BoardSchema.plugin(leanVirtualsPlugin);
// BoardSchema.plugin(leanVirtualsPlugin);

BoardSchema.virtual('users', {
ref: 'BoardUser',
Expand Down
2 changes: 1 addition & 1 deletion backend/src/modules/teams/schemas/teams.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class Team {

export const TeamSchema = SchemaFactory.createForClass(Team);

TeamSchema.plugin(leanVirtualsPlugin);
// TeamSchema.plugin(leanVirtualsPlugin);

TeamSchema.virtual('users', {
ref: 'TeamUser',
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ services:
build:
context: .
dockerfile: backend/Dockerfile
# image name
image: dc-backend

# container name
container_name: backend

ports:
- "3200:3200"
environment:
Expand Down Expand Up @@ -38,7 +43,13 @@ services:
- NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL:-http://localhost:3200}
- NEXT_PUBLIC_NEXTAUTH_URL=${NEXT_PUBLIC_NEXTAUTH_URL:-http://localhost:3000}
- NEXT_PUBLIC_ENABLE_AZURE=${NEXT_PUBLIC_ENABLE_AZURE}

# set image name
image: dc-frontend

# set container name
container_name: frontend

ports:
- "3000:3000"
environment:
Expand Down

0 comments on commit fd72c90

Please sign in to comment.