Skip to content

Commit 48298b0

Browse files
authored
Add some development-mode configs for client (#16)
Add some development-mode configs for `client` When uncommented, these configs will tell the app to watch for file changes with the mechanism described at: * facebook/create-react-app#1049
1 parent 319436f commit 48298b0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docker-compose.dev.yml

+21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
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+
# If you're working with a local copy of the `tb-mobile-app` repo,
15+
# reference it with the `TB_MOBILE_CONTEXT` variable in `.env`
16+
# and uncomment this section.
17+
# volumes:
18+
# - ${TB_MOBILE_CONTEXT}:/usr/src
19+
environment:
20+
# This allows Webpack's dev server to pick up file changes in Docker.
21+
# see https://github.com/facebook/create-react-app/issues/1049
22+
CHOKIDAR_USEPOLLING: 'true'
23+
324
web:
425
# command: bash -c '/wait && flask run --host 0.0.0.0 --port 5000'
526
build:

0 commit comments

Comments
 (0)