You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker-compose up history-service history-service-database
21
21
```
22
22
23
-
4. Using Postman or a likewise app, you can connect to `localhost:3006` to send http (REST) queries.
23
+
4. Using Postman or a likewise app, you can connect to `http://localhost:3006/history/` to send http (REST) queries.
24
24
25
25
# Starting Containers Individually
26
26
@@ -34,7 +34,7 @@ docker-compose up
34
34
35
35
Set up a Docker network using the following command, and ensure to use the same network name when starting the various services and databases later. (This step is important if you dont want to run via `docker-compose up` command)
36
36
37
-
Command:
37
+
Using Terminal, Run the following Command:
38
38
39
39
```
40
40
docker network create -d bridge peer-prep-network
@@ -44,6 +44,8 @@ This command is to be run only for the initial set up, and once the network is s
44
44
45
45
## mySQL Container
46
46
47
+
Navigate into `HistoryService` Directory
48
+
47
49
First and foremost change the `databaseUrl` in the `Config/config.js` file to `127.0.0.1`
48
50
49
51
Start by running this container first, else History Service will not be able to connect to Database.
@@ -64,7 +66,7 @@ docker exec -it history-service-database sh
64
66
65
67
The above will open a terminal window for the mySql Docker Container, where `mysql` can be used.
66
68
67
-
## History Service Server
69
+
## History Service Microservice
68
70
69
71
1. Navigate to the `HistoryService` Directory in Terminal or Powershell
docker-compose up user-service user-service-database
21
+
```
22
+
23
+
4. Using Postman or a likewise app, you can connect to `http://localhost:3002/users/` to send http (REST) queries.
24
+
3
25
## There are a few elements to take care of first:
4
26
5
27
1. Docker Network
@@ -8,9 +30,9 @@
8
30
9
31
## Set Up a Docker Network (Bridge)
10
32
11
-
Set up a Docker network using the following command, and ensure to use the same network name when starting the various services later.
33
+
Set up a Docker network using the following command, and ensure to use the same network name when starting the various services and databases later. (This step is important if you dont want to run via `docker-compose up` command)
0 commit comments