Skip to content

Commit 87d9f69

Browse files
author
Grace
committed
Add some development-mode configs for client
The app watches for file changes with the mechanism described at: * facebook/create-react-app#1049
1 parent da58bf8 commit 87d9f69

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docker-compose.dev.yml

+20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
version: '3.3'
2+
3+
# This file is intended to overwrite certain settings from `docker-compose.yml`.
4+
# These changes make it easier to develop,
5+
# with a tighter feedback loop on changes
6+
# and some additional debugging tools installed.
7+
# To activate development mode as defined by this file,
8+
# add this line to your `.env` file:
9+
#
10+
# COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml
11+
212
services:
13+
client:
14+
volumes:
15+
# Be sure you have a local copy of the `tb-mobile-app` repo,
16+
# and reference it with the `TB_MOBILE_CONTEXT` variable in `.env`.
17+
- ${TB_MOBILE_CONTEXT}:/usr/src
18+
environment:
19+
# This allows Webpack's dev server to pick up file changes in Docker.
20+
# see https://github.com/facebook/create-react-app/issues/1049
21+
CHOKIDAR_USEPOLLING: 'true'
22+
323
web:
424
# command: bash -c '/wait && flask run --host 0.0.0.0 --port 5000'
525
build:

0 commit comments

Comments
 (0)