Docker Compose deployment
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 Database persistence
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.
Deploy Tower
Environment variables
"docs/enterprise/_templates/docker/tower.env"
tower.yml
"docs/enterprise/_templates/docker/tower.yml"
docker-compose.yml
"docs/enterprise/_templates/docker/docker-compose.yml"
-
Download and configure tower.env.
-
Download and configure tower.yml, update values for allowed emails.
-
Download and configure docker-compose.yml.
The
db
andmail
containers should only be used for local testing; you may remove them if you have configured these services elsewhere.Make sure to customize the
TOWER_ENABLE_PLATFORMS
variable to include the execution platform(s) you will use. -
Deploy Tower and wait for it to initialize (takes a few minutes):
docker-compose up
For more information on configuration, see Configuration options.
Test the application
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:
# save to S3 bucket
outdir: 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.
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.