Skip to content

Docker Swarm deployment file

Kjell Petersen edited this page Dec 4, 2020 · 5 revisions

Swarm deployment file location

There is only one version-controlled Docker Swarm deployment file for all the services, where different parts are used in different contexts (inside TSD, outside TSD on the proxy server, in CI/CD at GitHub)

The main template file to use.

Get the file inside TSD:

  1. Download the docker-template.yml file from GitHub.
  2. Upload file using https://data.tst.usit.no to the correct TSD project.
  3. Log in to TSD and move file from /tsd/pXX/data/durable/file-api to the data/durable/DEPLOYMENT-FOLDER-PATH.
  4. Make sure the file is 'rwx' for the group.

Modify the file:

Depending on the context, modify the file to:

  1. Enable only the relevant services, disable irrelevant services.
  2. Configure ENVIRONMENT variables settings.
  3. Configure special mount paths (if applicable).
  4. Facilitate needed secrets to the docker instance.

See separate page for doing these modfications for the "TSD VM backend" context.