├── .gitignore ├── Dockerfile ├── README.md ├── docker-compose.yml └── taiga-conf ├── conf.json └── local.py /.gitignore: -------------------------------------------------------------------------------- 1 | media/ 2 | pgdata/ 3 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM benhutchins/taiga 2 | MAINTAINER Benjamin Hutchins 3 | 4 | ## Install Slack extension 5 | RUN LC_ALL=C pip install --no-cache-dir taiga-contrib-slack 6 | RUN mkdir -p /usr/src/taiga-front-dist/dist/plugins/slack/ 7 | RUN SLACK_VERSION=$(pip show taiga-contrib-slack | awk '/^Version: /{print $2}') && \ 8 | echo "taiga-contrib-slack version: $SLACK_VERSION" && \ 9 | curl https://raw.githubusercontent.com/taigaio/taiga-contrib-slack/$SLACK_VERSION/front/dist/slack.js -o /usr/src/taiga-front-dist/dist/plugins/slack/slack.js && \ 10 | curl https://raw.githubusercontent.com/taigaio/taiga-contrib-slack/$SLACK_VERSION/front/dist/slack.json -o /usr/src/taiga-front-dist/dist/plugins/slack/slack.json 11 | 12 | ## Install LDAP extensions 13 | # RUN pip install --no-cache-dir taiga-contrib-ldap-auth 14 | 15 | COPY taiga-conf/local.py /taiga/local.py 16 | COPY taiga-conf/conf.json /taiga/conf.json 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Example Taiga Setup 2 | 3 | This repo contains several example configurations for setting up Taiga using [docker-taiga](https://github.com/benhutchins/docker-taiga). 4 | 5 | ## Simple Example 6 | 7 | If you want a very simple example, simply pull the `docker-compose.yml` file from here: 8 | https://github.com/benhutchins/docker-taiga/tree/master/docker-compose.yml 9 | 10 | ## Customized Example (Adds Slack & LDAP support) 11 | 12 | For a slightly more customized setup, this directory provides an example of how 13 | to extend docker-taiga and add [taiga-contrib-slack](https://github.com/taigaio/taiga-contrib-slack) and [taiga-contrib-ldap-auth](https://github.com/ensky/taiga-contrib-ldap-auth) LDAP 14 | plugins. 15 | 16 | To use this example, as-is, simply clone this repo and startup Docker: 17 | 18 | ```bash 19 | git clone https://github.com/benhutchins/docker-taiga-example.git mytaiga 20 | cd mytaiga/ 21 | 22 | # Optional, but likely desired, update your configuration now 23 | vi docker-compose.yml # Be sure to update the TAIGA_HOSTNAME 24 | vi taiga-conf/conf.json 25 | vi taiga-conf/local.py 26 | 27 | # Startup docker containers 28 | docker-compose up -d 29 | 30 | # Wait ~30 seconds. The taiga container will initialize your postgres database. 31 | 32 | # Now open your web browser: 33 | open http://localhost/ 34 | ```` 35 | 36 | ### How to enable the LDAP plugin 37 | 38 | To enable LDAP as well: 39 | 40 | 1. Uncomment the relevant lines from the `Dockerfile` and `taiga-conf/local.py` 41 | 2. Add this to your `taiga-conf/conf.json` file: 42 | 43 | "loginFormType": "ldap", 44 | 45 | ### How to enable taiga-events 46 | 47 | To enable [taiga-events](https://github.com/taigaio/taiga-events): 48 | 49 | 1. Uncomment relevant lines from `docker-compose.yml` 50 | 2. Update to `eventsUrl` inside the `taiga-conf/conf.json` file 51 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | 3 | services: 4 | taiga: 5 | build: . 6 | ports: 7 | - 80:80 8 | # - 443:443 # To enable SSL, uncomment this line. See "Enable SSL" below. 9 | depends_on: 10 | - postgres 11 | 12 | # To enable taiga-events, uncomment the following lines: 13 | # - events 14 | # - rabbit 15 | # - redis 16 | environment: 17 | # Hostname for your instance of Taiga. Required. 18 | TAIGA_HOSTNAME: localhost 19 | 20 | # Database variables. Required. 21 | TAIGA_DB_HOST: postgres 22 | TAIGA_DB_NAME: taigadb 23 | TAIGA_DB_USER: taiga 24 | TAIGA_DB_PASSWORD: password 25 | 26 | # Enable SSL internally, within the Docker container. Optional. 27 | # This is not great. I suggest using something on top of this 28 | # to enable SSL. See the example example-nginx-ssl.conf file 29 | # for an alternative way to enable SSL. 30 | # TAIGA_SSL: 'True' 31 | 32 | # Enable SSL externally, preferred method 33 | # TAIGA_SSL_BY_REVERSE_PROXY: 'True' 34 | volumes: 35 | # Media and uploads directory. Required (or you will lose all uploads) 36 | - ./media:/usr/src/taiga-back/media 37 | 38 | # Taiga configuration directory. Makes it easier to change configuration. 39 | - ./taiga-conf:/taiga 40 | 41 | postgres: 42 | image: postgres 43 | environment: 44 | POSTGRES_DB: taigadb 45 | POSTGRES_USER: taiga 46 | POSTGRES_PASSWORD: password 47 | ports: 48 | - 5432 49 | volumes: 50 | # Postgres data directory. This ensures the database is not lost. 51 | - ./pgdata:/var/lib/postgresql/data 52 | 53 | 54 | # To enable taiga-events, uncomment the following lines: 55 | # rabbit: 56 | # image: rabbitmq:3 57 | # hostname: rabbit 58 | # 59 | # redis: 60 | # image: redis:3 61 | # 62 | # celery: 63 | # image: celery 64 | # links: 65 | # - rabbit 66 | # 67 | # events: 68 | # image: benhutchins/taiga-events 69 | # links: 70 | # - rabbit 71 | -------------------------------------------------------------------------------- /taiga-conf/conf.json: -------------------------------------------------------------------------------- 1 | { 2 | "api": "http://localhost/api/v1/", 3 | "eventsUrl": null, 4 | "eventsMaxMissedHeartbeats": 5, 5 | "eventsHeartbeatIntervalTime": 60000, 6 | "eventsReconnectTryInterval": 10000, 7 | "debug": false, 8 | "debugInfo": false, 9 | "defaultLanguage": "en", 10 | "themes": ["taiga"], 11 | "defaultTheme": "taiga", 12 | "publicRegisterEnabled": false, 13 | "gravatar": true, 14 | "feedbackEnabled": false, 15 | "privacyPolicyUrl": null, 16 | "termsOfServiceUrl": null, 17 | "maxUploadFileSize": null, 18 | "contribPlugins": ["/plugins/slack/slack.json"], 19 | "tribeHost": null, 20 | "importers": [] 21 | } 22 | -------------------------------------------------------------------------------- /taiga-conf/local.py: -------------------------------------------------------------------------------- 1 | # Please modify this file as needed, see the local.py.example for details: 2 | # https://github.com/taigaio/taiga-back/blob/master/settings/local.py.example 3 | # 4 | # Importing docker provides common settings, see: 5 | # https://github.com/benhutchins/docker-taiga/blob/master/docker-settings.py 6 | # https://github.com/taigaio/taiga-back/blob/master/settings/common.py 7 | from .docker import * 8 | 9 | PUBLIC_REGISTER_ENABLED = False 10 | DEBUG = False 11 | TEMPLATE_DEBUG = False 12 | 13 | ## Slack 14 | # https://github.com/taigaio/taiga-contrib-slack 15 | INSTALLED_APPS += ["taiga_contrib_slack"] 16 | 17 | ## LDAP 18 | # see https://github.com/ensky/taiga-contrib-ldap-auth 19 | # INSTALLED_APPS += ["taiga_contrib_ldap_auth"] 20 | 21 | ## For additional configuration options, look at: 22 | # https://github.com/taigaio/taiga-back/blob/master/settings/local.py.example 23 | --------------------------------------------------------------------------------