Newer
Older
frontend:
build:
context: ./sth-frontend
develop:
watch:
- action: sync
path: ./sth-frontend/src
target: /app/src
ports:
- "5173:5173"
backend:
build:
context: ./sth-backend
develop:
watch:
- action: sync
path: ./sth-backend/src
target: /apps/src
ports:
- "8080:8080"
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: alhb
MONGO_INITDB_ROOT_PASSWORD: asdasd123
ports:
volumes:
- mongodata:/data/db
- ./test.json:/docker-entrypoint-initdb.d/test.json
volumes:
mongodata:
driver: local