Skip to content

Instantly share code, notes, and snippets.

@bbachi
Last active November 17, 2022 10:20
Show Gist options
  • Save bbachi/664a3817323fb79ab7981a7bb220adae to your computer and use it in GitHub Desktop.
Save bbachi/664a3817323fb79ab7981a7bb220adae to your computer and use it in GitHub Desktop.
docker compose
version: '3'
services:
nodejs-server:
build:
context: ./api
dockerfile: Dockerfile-dev
ports:
- "3080:3080"
container_name: node-api
volumes:
- ./api:/usr/src/app/api
- /usr/src/app/api/node_modules
angular-ui:
build:
context: ./app-ui
dockerfile: Dockerfile-dev
ports:
- "4201:4201"
container_name: angular-ui
volumes:
- ./app-ui:/usr/src/app/app-ui
- /usr/src/app/app-ui/node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment