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