Created
June 19, 2020 20:42
-
-
Save bbachi/8eb98eae2c5647fe72caf18356de1f50 to your computer and use it in GitHub Desktop.
react nodejs dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
nodejs-server: | |
build: | |
context: ./api | |
ports: | |
- "3080:3080" | |
container_name: node-api | |
volumes: | |
- ./api:/usr/src/app/api | |
- /usr/src/app/api/node_modules | |
react-ui: | |
build: | |
context: ./my-app | |
ports: | |
- "3000:3000" | |
container_name: react-ui | |
stdin_open: true | |
volumes: | |
- ./my-app:/usr/src/app/my-app | |
- /usr/src/app/my-app/node_modules |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment