Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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