This guide assumes that all prerequisites have been met. Please visit the corresponding Prerequisites page for your infrastructure provider.
We recommend configuring your database or Redis details in either the tower.yml or the docker-compose.yml, but not both.
Note
In order for your DB or Redis volume to persist after a docker restart, uncomment the volumes key in the db or redis section of your docker-compose.yml file. Use this section to specify a local path to the DB or Redis instance.
TOWER_SERVER_URL=http://localhost:8000
TOWER_CONTACT_EMAIL=admin@your-org.com
TOWER_JWT_SECRET=<Replace This With A Secret String containing at least 35 characters>
TOWER_CRYPTO_SECRETKEY=<Replace This With Another Secret String>
TOWER_LICENSE=<YOUR TOWER LICENSE KEY>
# Compute environment settingsTOWER_ENABLE_PLATFORMS=awsbatch-platform,azbatch-platform,gls-platform,k8s-platform,slurm-platform
# DB settingsTOWER_DB_URL=jdbc:mysql://db:3306/tower
TOWER_DB_DRIVER=org.mariadb.jdbc.Driver
TOWER_DB_DIALECT=io.seqera.util.MySQL55DialectCollateBin
TOWER_DB_USER=tower
TOWER_DB_PASSWORD=tower
FLYWAY_LOCATIONS=classpath:db-schema/mysql
# SMTP settings TOWER_SMTP_HOST=mail
TOWER_SMTP_PORT=587TOWER_SMTP_USER=foo
TOWER_SMTP_PASSWORD=foo
# Replace these settings with a SMTP server provided by your cloud vendor# The mail scope is used for providing config to the underlying Micronaut frameworkmail:from:"${TOWER_CONTACT_EMAIL}"smtp:host:${TOWER_SMTP_HOST}port:${TOWER_SMTP_PORT}user:${TOWER_SMTP_USER}password:${TOWER_SMTP_PASSWORD}# `starttls` should be enabled with a production SMTP hostauth:truestarttls:enable:falserequired:false# Duration of Tower sign-in email link validityauth:mail:duration:30m# The tower scope is used for providing config for your Tower Enterprise installationtower:trustedEmails:-'*@org.xyz'-'named_user@org.xyz'# Tower instance-wide configuration for authentication. For further information, see https://install.tower.nf/latest/configuration/authentication/auth:google:allow-list:-"*@org.xyz"oidc:allow-list:-"*@org.xyz"# Tower instance-wide configuration for SCM providers. For further information, see https://install.tower.nf/latest/configuration/git_integration/scm:providers:github:user:<YOUR GITHUB USER NAME>password:<YOUR GITHUB ACCESS TOKEN OR PASSWORD>gitlab:user:<YOUR GITLAB USER NAME>password:<YOUR GITLAB PASSWORD>token:<YOUR GITLAB TOKEN>bitbucket:user:<YOUR BITBUCKET USER NAME>password:<YOUR BITBUCKET TOKEN OR PASSWORD>
version:"3"services:db:image:mysql:5.6networks:-backendexpose:-3306environment:MYSQL_ALLOW_EMPTY_PASSWORD:"yes"MYSQL_USER:towerMYSQL_PASSWORD:towerMYSQL_DATABASE:towerrestart:always# enable this snippet to store the Mysql data in the host volume# volumes:# - $HOME/.tower/db/mysql:/var/lib/mysqlredis:image:cr.seqera.io/public/redis:5.0.8networks:-backendexpose:-6379command:--appendonly yesrestart:always# enable this snippet to store the Redis data in the host volume# volumes:# - $HOME/.tower/db/redis:/datacron:image:cr.seqera.io/private/nf-tower-enterprise/backend:v23.1.0command:-c '/wait-for-it.sh db:3306 -t 60; /migrate-db.sh; /tower.sh'networks:-frontend-backendvolumes:-$PWD/tower.yml:/tower.ymlenv_file:-tower.envenvironment:-MICRONAUT_ENVIRONMENTS=prod,redis,cronrestart:alwaysdepends_on:-db-redisbackend:image:cr.seqera.io/private/nf-tower-enterprise/backend:v23.1.0command:-c '/wait-for-it.sh db:3306 -t 60; /tower.sh'networks:-frontend-backendexpose:-8080volumes:-$PWD/tower.yml:/tower.ymlenv_file:-tower.envenvironment:-MICRONAUT_ENVIRONMENTS=prod,redis,harestart:alwaysdepends_on:-db-redis-cronfrontend:image:cr.seqera.io/private/nf-tower-enterprise/frontend:v23.1.0networks:-frontendports:-8000:80restart:alwaysdepends_on:-backendnetworks:frontend:{}backend:{}
To make sure that Tower is properly configured, follow these steps:
Login to Tower.
Create an organization.
Create a workspace within that organization.
Create a new Compute Environment. Refer to Compute Environments for detailed instructions.
Select Quick Launch from the Launchpad tab in your workspace.
Enter the repository URL for the nf-core/rnaseq pipeline (https://github.com/nf-core/rnaseq).
In the Config profiles dropdown, select the test profile.
In the Pipeline parameters text area, change the output directory to a sensible location based on your Compute Environment:
12345
# save to S3 bucketoutdir:s3://<your-bucket>/results# save to scratch directory (Kubernetes)outdir:/scratch/results
Select Launch.
You'll be transitioned to the Runs tab for the workflow. After a few minutes, you'll see the progress logs in the Execution log tab for that workflow.
Tip
Once you've made sure that Tower is configured correctly and you can launch workflows, you can run docker-compose up -d to deploy Tower as a background process. You can then disconnect from the VM instance.