Skip to content

Commit

Permalink
update nginx to use reverse proxies in production
Browse files Browse the repository at this point in the history
  • Loading branch information
repodevs committed Oct 21, 2017
1 parent 848874c commit b6afbd3
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,30 @@ services:
restart: always
ports:
- 80:80
depends_on:
users-service:
condition: service_started
web-service:
condition: service_started
links:
- users-service
- web-service


web-service:
container_name: web-service
build:
context: https://github.com/repodevs/flask-microservices-client.git
args:
- NODE_ENV=production
- REACT_APP_USERS_SERVICE_URL=${REACT_APP_USERS_SERVICE_URL}
ports:
- '9000:9000' # expose ports - HOST:CONTAINER
environment:
- NODE_ENV=development
- REACT_APP_USERS_SERVICE_URL=${REACT_APP_USERS_SERVICE_URL}
depends_on:
users-service:
condition: service_started
links:
- users-service
- users-service

0 comments on commit b6afbd3

Please sign in to comment.