File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ Remove image:
85
85
``` bash
86
86
$ docker rmi $( docker images -q)
87
87
```
88
+ Export local environment:
89
+ ``` bash
90
+ $ export REACT_APP_USERS_SERVICE_URL=HTTP://IP_DOCKER_APP_USER
91
+ ```
92
+
88
93
---
89
94
Access database via psql:
90
95
``` bash
Original file line number Diff line number Diff line change @@ -39,4 +39,23 @@ services:
39
39
users-service :
40
40
condition : service_started
41
41
links :
42
- - users-service
42
+ - users-service
43
+
44
+
45
+ web-service :
46
+ container_name : web-service
47
+ build :
48
+ context : https://github.com/repodevs/flask-microservices-client.git
49
+ args :
50
+ - NODE_ENV=development
51
+ - REACT_APP_USERS_SERVICE_URL=${REACT_APP_USERS_SERVICE_URL}
52
+ ports :
53
+ - ' 9000:9000' # expose ports - HOST:CONTAINER
54
+ environment :
55
+ - NODE_ENV=development
56
+ - REACT_APP_USERS_SERVICE_URL=${REACT_APP_USERS_SERVICE_URL}
57
+ depends_on :
58
+ users-service :
59
+ condition : service_started
60
+ links :
61
+ - users-service
You can’t perform that action at this time.
0 commit comments