I have two Python files, server.py and capture.py. Both are initiated in docker-compose.local.yaml:
server:
build: ./app
depends_on:
- init
ports:
- 5000:5000
command: ['server.py', '--url', 'redis://redisedge:6379']
capture:
build: ./app
depends_on:
- init
command: ['capture.py', '--url', 'redis://redisedge:6379', 'data/walking.mp4']
In addition, server.py imports capture.py, though it does not reference capture.py anywhere else.
When I run docker-compose up
, print statements in server.py show up in the terminal, but print statements in capture.py do not. I know that capture.py is running, because video output from the code is showing up in the appropriate port of my localhost. How can I get capture.py to print in terminal?