Skip to content

Commit b6afbd3

Browse files
committed
update nginx to use reverse proxies in production
1 parent 848874c commit b6afbd3

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

docker-compose-prod.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,30 @@ services:
3636
restart: always
3737
ports:
3838
- 80:80
39+
depends_on:
40+
users-service:
41+
condition: service_started
42+
web-service:
43+
condition: service_started
44+
links:
45+
- users-service
46+
- web-service
47+
48+
49+
web-service:
50+
container_name: web-service
51+
build:
52+
context: https://github.com/repodevs/flask-microservices-client.git
53+
args:
54+
- NODE_ENV=production
55+
- REACT_APP_USERS_SERVICE_URL=${REACT_APP_USERS_SERVICE_URL}
56+
ports:
57+
- '9000:9000' # expose ports - HOST:CONTAINER
58+
environment:
59+
- NODE_ENV=development
60+
- REACT_APP_USERS_SERVICE_URL=${REACT_APP_USERS_SERVICE_URL}
3961
depends_on:
4062
users-service:
4163
condition: service_started
4264
links:
43-
- users-service
65+
- users-service

0 commit comments

Comments
 (0)