PHPackages                             statonlab/tripaldock - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. statonlab/tripaldock

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

statonlab/tripaldock
====================

Build a simple development environment for Tripal

0.1.1(8y ago)165[5 issues](https://github.com/statonlab/tripaldock/issues)PLpgSQL

Since Dec 5Pushed 7y ago3 watchersCompare

[ Source](https://github.com/statonlab/tripaldock)[ Packagist](https://packagist.org/packages/statonlab/tripaldock)[ RSS](/packages/statonlab-tripaldock/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (1)Versions (15)Used By (0)

[![DOI](https://camo.githubusercontent.com/7aea30ea8f2daac2b76d08d79eb0ea33c659fb7aa9dd09b16c54b80ca4fcac49/68747470733a2f2f7a656e6f646f2e6f72672f62616467652f3131323835363730352e737667)](https://zenodo.org/badge/latestdoi/112856705)

Tripaldock is a command line tool that helps with creating and running Tripal sites using docker. This tool is designed for developers and is not suitable for production. It utilizes Docker Compose to build a stack of configured containers to host all required services. Supported services:

- Web Server (Apache2)
- PHP (7.1)
- PostgreSQL (9.6)
- Elasticsearch (5.6)

Installation
------------

[](#installation)

It is preferable to install this tool using composer.

```
composer global require statonlab/tripaldock:~0.1.1
```

Updating
--------

[](#updating)

You can update tripaldock using your local tripaldock!

```
./tripaldock self-update
```

Documentation
-------------

[](#documentation)

### Required Software

[](#required-software)

- [Composer](https://getcomposer.org)
- [Docker](https://docs.docker.com/install)
- [Docker compose](https://docs.docker.com/compose/install)

### Creating a new tripal site

[](#creating-a-new-tripal-site)

Using the `new` command, you can create a fresh Tripal 3 site. The command will automatically download and install the dependencies as well as prepare Drupal and Tripal.

```
# Create a new site and call it site_name
tripaldock new site_name

# Navigate the new site
cd site_name
```

Please note that the parameter site\_name is also going to be the name of your database.

### Admin Credentials

[](#admin-credentials)

These are the default credentials that tripaldock uses for the admin user:

- **Username**: tripal
- **Password**: secret

#### Site Structure

[](#site-structure)

Once tripaldock is done creating your new site, a new directory (site\_name) will be created. The directory contains multiple folders along with docker related files. The folders are:

- modules: Maps to sites/all/modules/custom and should contain your custom modules. By default, this folder will have `tripal` in it.
- themes: Maps to sites/all/themes and should contain your custom themes.
- libraries: Maps to sites/all/libraries and should contain any Drupal libraries.
- files: Maps to sites/default/files and should hold any custom files.

### Local Tripaldock

[](#local-tripaldock)

Once the installation of the new site is completed, a copy of `tripaldock` will be placed within the resulting file. This is your site's specific tripaldock. It provides a set of commands to interact directly with the container responsible for this site.

#### Up and Down

[](#up-and-down)

To start up the container:

```
./tripaldock up
```

To stop the container:

```
./tripaldock down
```

#### SSH

[](#ssh)

To access your container and run commands directly within it, you may use the ssh command. This command will take you directly to `/var/www/html` which is where your Drupal resides. From there, you can run any command such as `drush`and interact with the database using `psql -U tripal`.

```
./tripaldock ssh
```

Which is equivalent to running:

```
docker-compose exec app bash
```

#### Obtaining Logs

[](#obtaining-logs)

You can use the `logs` command to obtain apache, php, postgres and elasticsearch logs:

```
./tripaldock logs # Get all available logs
./tripaldock logs app # Get apache and php logs
./tripaldock logs elasticsearch # Get elasticsearch logs
./tripaldock logs postgres # Get DB logs
```

#### Installing Drupal Modules

[](#installing-drupal-modules)

TripalDock provides a special install command to pull known modules directly from git and use composer to install their library dependencies if available. However, if the module is not one of the listed below, it will use drush to attempt to install the module.

```
./tripaldock install [MODULE NAME]
```

Known modules:

- tripal\_elasticsearch: installs the module along with elasticsearch-php library

#### Running Drush

[](#running-drush)

You can also use tripaldock to run drush without having to access the container:

```
./tripaldock drush [ARGS]
```

#### Connecting to Elasticsearch

[](#connecting-to-elasticsearch)

The tripal\_elasticsearch module will require you to setup the correct hostname and port for your elasticsearch server. To use the elasticsearch that ships with this module, you should do the following:

- Visit `/admin/tripal/extension/tripal_elasticsearch/connection`
- Enter `http://elasticsearch` in the host field. You can omit the port.
- Click the submit button.

#### Remove and Destroy

[](#remove-and-destroy)

If you would like to completely remove the container from the system including anonymous volumes, run the rm command.

```
# You will be prompted to confirm the action
./tripaldock rm
```

Drupal Security
---------------

[](#drupal-security)

Drupal 7 is periodically updated with important security patches. You should ensure that you keep your core Drupal software up to date and [visit the Drupal release website](https://www.drupal.org/project/drupal) for more information.

Video Tutorials
---------------

[](#video-tutorials)

#### Setting Up A Website From Scratch With TripalDock

[](#setting-up-a-website-from-scratch-with-tripaldock)

[![](https://camo.githubusercontent.com/97e5921a79084c39d54b272926cf501e5c28450eb8bdf88c6af4b40d4d613fc2/687474703a2f2f696d672e796f75747562652e636f6d2f76692f35534f66514c79707664452f302e6a7067)](http://www.youtube.com/watch?v=5SOfQLypvdE "Setting Up A Website From Scratch With TripalDock")

#### TripalDock Commands And Site Structure

[](#tripaldock-commands-and-site-structure)

[![](https://camo.githubusercontent.com/147f27b7ce4f8b4ac1ea128dbb10c059c54547d77e20b200799e54f7f5d43dcf/687474703a2f2f696d672e796f75747562652e636f6d2f76692f675f666d4f4e55674733732f302e6a7067)](http://www.youtube.com/watch?v=g_fmONUgG3s "TripalDock Commands And Site Structure")

License
-------

[](#license)

Copyright 2017 University of Tennessee Knoxville ([GPL](LICENSE))

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 90.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Recently: every ~17 days

Total

11

Last Release

3009d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e3b0f200ee396addb8408360be67044892059bdc5ea5a71239a167be0d00914?d=identicon)[statonlab](/maintainers/statonlab)

---

Top Contributors

[![almasaeed2010](https://avatars.githubusercontent.com/u/1512664?v=4)](https://github.com/almasaeed2010 "almasaeed2010 (59 commits)")[![bradfordcondon](https://avatars.githubusercontent.com/u/7063154?v=4)](https://github.com/bradfordcondon "bradfordcondon (5 commits)")[![jwest60](https://avatars.githubusercontent.com/u/32902460?v=4)](https://github.com/jwest60 "jwest60 (1 commits)")

---

Tags

dockerdocker-composetripaltripal-developer-toolstripal3

### Embed Badge

![Health badge](/badges/statonlab-tripaldock/health.svg)

```
[![Health](https://phpackages.com/badges/statonlab-tripaldock/health.svg)](https://phpackages.com/packages/statonlab-tripaldock)
```

###  Alternatives

[wsdltophp/packagegenerator

Generate hierarchical PHP classes based on a WSDL

4351.9M19](/packages/wsdltophp-packagegenerator)[shopware/deployment-helper

Shopware deployment tools

19305.3k5](/packages/shopware-deployment-helper)[drevops/git-artifact

Package artifact from your codebase in CI and push it to a separate git repo.

2133.2k](/packages/drevops-git-artifact)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
