Repository navigation
Lab 03: many containers with Docker Compose - #17
Merged
Merged
Conversation
…service DNS) Signed-off-by: Ante Projić <[email protected]>
…RM so down/restart don't wait 10 s Signed-off-by: Ante Projić <[email protected]>
… Compose warning Signed-off-by: Ante Projić <[email protected]>
… docker run box Signed-off-by: Ante Projić <[email protected]>
…y-one, scale as evidence, volume time as own data) Signed-off-by: Ante Projić <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Lab 03 replacing the coming soon row.
lab-03-compose/app/: Flask visit counter + Redis, Dockerfile (python:3.14-slim, as Lab 02),compose.yamlwithout the obsoleteversion:key, healthcheck +depends_on: service_healthy, named volume..env→ what Compose created (network, volume, service-name DNS, Redis auth warning) →restartvsdownvsdown -v→ cleanup.CODESPACE_NAME; table of counts/hostnames across the three commands; short answers incl. why--scale web=3clashes on port 80 (bridge to lecture 4).app.pyexits on SIGTERM: as PID 1, Python ignored it and everydown/restartwaited 10 s for the kill.Tested: every command run verbatim in this repo's dev container (
@devcontainers/cli, Ubuntu 24.04 + docker-in-docker:4, Docker Compose v5.6.0); expected outputs come from that run. Not observed in a real Codespace (the image has no sshd forgh codespace ssh): the forwarded address and the realCODESPACE_NAMEvalue.