When I start image without compose just by docker run -dit , it works nicely and I can exec into it.
However if I try to use docker-compose -f docker-compose.yml up -d, its stuck in constant restarting loop. Logs show nothing.
Important that in yml file I have postgres as a dependable service to app service. Postres container is up normally, but app container is stuck.
Also tried with docker stack with same yml file, same thing happens.
Below is my test yml file.
Help is appreciated.
version: '3.3' services: app: depends_on: - db image: registry.gitlab.com/perpetualwar/rragequit:latest ports: - '449:443' restart: always environment: APP_DB_HOST: db:5432 APP_DB_USERNAME: rragequit APP_DB_PASSWORD: uyIYGi&679bgUJ db: image: postgres:10 restart: always ports: - '5433:5432' environment: DB_USERNAME: rragequit DB_DATABASE: rragequit DB_PASSWORD: uyIYGi&679bgUJ