add 'tty: true' to the docker-compose file (#490) (#491)

Motivation:

swift-nio example projects (http, echo) don't print anything to the console when running inside docker container because of buffering issue.

Modifications:

Added tty: true to the docker-compose.yaml for http & echo.

Result:

Buffering issue is resolved. http & echo prints logs to the console.
This commit is contained in:
Eugen 2018-06-25 23:11:58 +03:00 committed by Cory Benfield
parent 29d6bf029a
commit a8a18ba222
1 changed files with 2 additions and 0 deletions

View File

@ -37,12 +37,14 @@ services:
echo:
<<: *common
tty: true
ports:
- "9999:9999"
command: /bin/bash -cl "swift run NIOEchoServer 0.0.0.0 9999"
http:
<<: *common
tty: true
ports:
- "8888:8888"
command: /bin/bash -cl "swift run NIOHTTP1Server 0.0.0.0 8888"