⬅︎ Back to How to create-react-app with Docker
+1 for a docker-compose example. Having to pass in volumes to mount for each operation defeats the purpose of making this easy.
Docker-compose example?
My Docker-Compose fileversion: '3' services: app: build: . image: react:app ports: - 3000:3000 - 35729:35729 volumes: - ./:/app
Comment
+1 for a docker-compose example. Having to pass in volumes to mount for each operation defeats the purpose of making this easy.
Parent comment
Docker-compose example?
Replies
My Docker-Compose file
version: '3'
services:
app:
build: .
image: react:app
ports:
- 3000:3000
- 35729:35729
volumes:
- ./:/app