Skip to content

About

demo repo that deploys two+ related containers (eg: frontend + redis or DB, etc.) which can talk to each other

Resources

Stars

1 star

Watchers

12 watching

Forks

Latest commit

 

History

91 Commits

Folders and files

Repository files navigation

nomad-multiple-tasks

logo.png

demo repo that deploys two+ related containers (eg: frontend + redis or DB, etc.) which can talk to each other

example webapp (this repo): https://internetarchive-multi.ext.archive.org/

how to

From inside a container, to find another container's port to talk to it, read the environment variable for the relevant named port. For example, for a port named backend, you'd want to read this environment variable which contains the IP address and port number of the backend service.

$NOMAD_ADDR_backend

Our port numbers and names get setup in our

.github/workflows/cicd.yml

here:

  NOMAD_VAR_PORTS: '{ 5000 = "http", 5432 = "backend" }'

About

demo repo that deploys two+ related containers (eg: frontend + redis or DB, etc.) which can talk to each other

Resources

Stars

1 star

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages