Hello everyone, I have a problem with my service. It exits with code: 0 but when I manually start the service it is all fine. What do you think could be the problem here?
I have tried using tty: true and stdin_open: true but none of them worked.
Dockerfile
FROM golang:1.16-alpine
ADD . /go/src/user-service
WORKDIR /go/src/user-service
RUN go build -o /user-service
EXPOSE 8080
ENTRYPOINT [ "/user-service" ]
docker-compose.yml
version: '3.3'
services:
database:
image: mongo
ports:
- "27017:27017"
healthcheck:
test: mongo --norc --quiet --host=localhost:27017 --eval "db.getMongo()"
interval: 30s
timeout: 2s
retries: 3
start_period: 15s
user:
build: .
ports:
- "8080:8080"
depends_on:
database:
condition: service_healthy
