Skip to content

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

Notifications You must be signed in to change notification settings

internetarchive/nomad-multiple-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages