awesome-compose/react-aspnet-mongodb/compose.yaml
Esteban Solano Granados 996b7ac9bf Frontend+Backend fixes
Signed-off-by: GitHub <noreply@github.com>
2022-06-13 21:22:28 +00:00

41 lines
639 B
YAML

services:
frontend:
build:
context: frontend
ports:
- 80:80
volumes:
- '.:/app'
- '/app/node_modules'
networks:
- react-frontend
depends_on:
- backend
links:
- backend
backend:
build: backend
restart: always
ports:
- 8000:8000
depends_on:
- mongo
environment:
- ASPNETCORE_URLS=http://+:8000
networks:
- react-backend
- react-frontend
mongo:
restart: always
image: mongo:4.2.0
volumes:
- ./data:/data/db
networks:
- react-backend
networks:
react-backend: {}
react-frontend: {}