Skip to content

Instantly share code, notes, and snippets.

@bbachi
Created June 19, 2020 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbachi/8eb98eae2c5647fe72caf18356de1f50 to your computer and use it in GitHub Desktop.
Save bbachi/8eb98eae2c5647fe72caf18356de1f50 to your computer and use it in GitHub Desktop.
react nodejs dev
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