Created
June 23, 2015 18:24
-
-
Save wesleyit/e61518b4fc849f9eca6b to your computer and use it in GitHub Desktop.
This script will setup the Taiga.io tool. It is an amazing management tool for agile projects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| USERDATA="/var/lib/docker/datastorage" | |
| mkdir -p "$USERDATA" | |
| docker run --name data -d \ | |
| -v $USERDATA/postgresql:/var/lib/postgresql/data \ | |
| -v $USERDATA/media:/usr/local/taiga/media \ | |
| -v $USERDATA/static:/usr/local/taiga/static \ | |
| -v $USERDATA/logs:/usr/local/taiga/logs \ | |
| tianon/true | |
| docker run --name db -d \ | |
| -e POSTGRES_USER=taiga \ | |
| -e POSTGRES_PASSWORD=password \ | |
| --volumes-from data \ | |
| postgres | |
| docker run --name taigaback -d \ | |
| --hostname ec2-54-152-25-61.compute-1.amazonaws.com \ | |
| -e SECRET_KEY=examplesecretkey \ | |
| -e EMAIL_USE_TLS=True \ | |
| -e EMAIL_HOST=smtp.gmail.com \ | |
| -e EMAIL_PORT=587 \ | |
| -e EMAIL_HOST_USER=xpto@email.com \ | |
| -e EMAIL_HOST_PASSWORD=mypassword \ | |
| --link db:postgres \ | |
| --volumes-from data \ | |
| htdvisser/taiga-back:stable | |
| docker run --name taigafront -d \ | |
| --hostname ec2-my-ip.compute-1.amazonaws.com \ | |
| --link taigaback:taigaback \ | |
| --volumes-from data \ | |
| --publish 0.0.0.0:80:80 \ | |
| --publish 0.0.0.0:443:443 \ | |
| htdvisser/taiga-front-dist:stable | |
| ## The next step you need to exec using a shell inside a container | |
| docker exec -it taigaback bash | |
| cd /usr/local/taiga/taiga-back/ | |
| python manage.py loaddata initial_user | |
| python manage.py loaddata initial_project_templates | |
| python manage.py loaddata initial_role |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment