Skip to content

Commit

Permalink
fix: docker compose network
Browse files Browse the repository at this point in the history
  • Loading branch information
Daviancold committed Oct 6, 2024
1 parent 21208d7 commit c9c7c8c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
ports:
- 3002:3002
networks:
- user-service-network
- backend-network
depends_on:
user-db:
condition: service_healthy
Expand All @@ -31,7 +31,7 @@ services:
volumes:
- 'user_data:/data/db'
networks:
- user-service-network
- backend-network
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
Expand All @@ -46,6 +46,7 @@ services:
- PORT=3004
- DB_URL=mongodb://question-db:27017/question-service
- ACCESS_TOKEN_PUBLIC_KEY=${ACCESS_TOKEN_PUBLIC_KEY}
- ACCESS_TOKEN_PRIVATE_KEY=${ACCESS_TOKEN_PRIVATE_KEY}
- USER_SERVICE_URL=http://user-service:3002
build:
context: .
Expand All @@ -54,7 +55,7 @@ services:
ports:
- 3004:3004
networks:
- question-service-network
- backend-network
depends_on:
question-db:
condition: service_healthy
Expand All @@ -67,7 +68,7 @@ services:
volumes:
- 'question_data:/data/db'
networks:
- question-service-network
- backend-network
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
Expand All @@ -83,5 +84,4 @@ volumes:
# with each other, by using their container name as a hostname
# without having to go through mapped ports
networks:
user-service-network:
question-service-network:
backend-network:

0 comments on commit c9c7c8c

Please sign in to comment.