Flexible Dockerized Phoenix Deployments (1.2 & 1.3)

~/webapp/phx/1.4.0-dev/dynt (master ✔) ᐅ docker logs dynt-server
02:28:54.816 [info] SIGTERM received - shutting down

That’s it… It’s four minutes later than the previous logs because I ran it couple times after the recording of the other log.

Here’s a more complete log:

It’s interesting that when I shutdown by hitting ctrl-c(twice), only dynt-admin and dynt-db are shutdown, not dynt-server

^CGracefully stopping... (press Ctrl+C again to force)
Stopping dynt-server ... done
Stopping dynt-db ... done

but earlier on, after docker-compose up all three are fired-up:

Creating dynt-db ... done
Creating dynt-admin ... done
Creating dynt-server ... done
Attaching to dynt-db, dynt-admin, dynt-server

RUN 2

This is weird, I tried another docker-compose up and dynt-server is getting a SIGTERM:

dynt-server | 02:09:39.013 [info] SIGTERM received - shutting down
dynt-server | 
dynt-server | 02:18:22.816 [info] SIGTERM received - shutting down
dynt-server | 

I think it has something to do with the postgresql db failing to launch. Here is the whole log of ‘run 2’:

It could be me forgetting to do docker-compose down before up but I just tried that and I’m back to square one where ctrl-c will shutdown db and server but not server. I have yet to see the http server return a page.