added nginx service for docker-compose dev file

This commit is contained in:
augustinebest 2021-10-05 21:21:15 +01:00
parent 32dabeb010
commit 67e2483eeb

View File

@ -375,5 +375,20 @@ services:
# Use node modules of the container and not host system.
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
- /usr/src/app/node_modules/
nginx:
depends_on:
- mongo
- backend
- home
- dashboard
- accounts
- admin-dashboard
restart: always
build:
dockerfile: Dockerfile
context: ./nginx
ports:
- '8080:80'
- '443:443'
volumes:
mongodata: