diff --git a/apollo-gateway/graphql/adapters/CommentsService.js b/apollo-gateway/graphql/adapters/CommentsService.js index a89b8fda3ea147837c645bc44674a1a18ac9ca67..70ba9d3a1022f390221cc9d1083261d4497a77c3 100644 --- a/apollo-gateway/graphql/adapters/CommentsService.js +++ b/apollo-gateway/graphql/adapters/CommentsService.js @@ -1,6 +1,6 @@ import axios from 'axios'; -const COMMENTS_SERVICE_URI = "http://localhost:5003"; +const COMMENTS_SERVICE_URI = "http://comments-service:5003"; export default class PostsService { static async fetchAllPostComments({ postId }) { diff --git a/apollo-gateway/graphql/adapters/PostsService.js b/apollo-gateway/graphql/adapters/PostsService.js index d0df8d64355b8250f3d816b9208cd62214c422ca..122dc714b86092a1e4edfaaaac7b7c22420a4877 100644 --- a/apollo-gateway/graphql/adapters/PostsService.js +++ b/apollo-gateway/graphql/adapters/PostsService.js @@ -1,6 +1,6 @@ import axios from 'axios'; -const POSTS_SERVICE_URI = "http://localhost:5002"; +const POSTS_SERVICE_URI = "http://posts-service:5002"; export default class PostsService { static async fetchAllPosts() { diff --git a/apollo-gateway/graphql/adapters/UsersService.js b/apollo-gateway/graphql/adapters/UsersService.js index aca9cd3afb39376b4e252539fc4dcba5d1ee7326..b9f9905c79a2fdca60dff56217e2153ce23fd5fa 100644 --- a/apollo-gateway/graphql/adapters/UsersService.js +++ b/apollo-gateway/graphql/adapters/UsersService.js @@ -1,6 +1,6 @@ import axios from 'axios'; -const USERS_SERVICE_URI = "http://localhost:5001/user"; +const USERS_SERVICE_URI = "http://users-service:5001/user"; export default class UsersService { static async signup({ name, email, password }) {