Envs
Docker version 19.03.13, build 4484c46d9d
docker-compose version 1.22.0, build f46880fe
What Happened
I develop very simple RESTful APIs to learn by using Gin.
When I notice that tty=true(in docker-compose.yml) is not required in my code and delete it, the log highlights disappear strangely.
Codes
docker-compose.yml
version: '3'
volumes:
vendor:
services:
api:
build:
context: .
dockerfile: Dockerfile
ports:
- 3001:3001
tty:
true
depends_on:
- db
db:
image: postgres:alpine
environment:
POSTGRES_USER: gorm
POSTGRES_PASSWORD: gorm
POSTGRES_DB: gorm
POSTGRES_HOST: db
ports:
- 5432:5432
Other codes https://gist.github.com/Asuha-a/521b37c8ac56f5c52a1d4b5a76b2726d
I Want to Know
I have no idea of the reasons. What do you think?

