Taiga back image with Docker Secrets support
1.0K
Taiga is a project management platform for startups and agile developers & designers who want a simple, beautiful tool that makes work truly enjoyable.
This Docker image can be used for running the Taiga backend. It works together with the htdvisser/taiga-front-dist image.
A postgres container should be linked to the taiga-back container. The taiga-back container will use the POSTGRES_USER and POSTGRES_PASSWORD environment variables that are supplied to the postgres container.
docker run --name taiga_back_container_name --link postgres_container_name:postgres htdvisser/taiga-back
For a complete taiga installation (htdvisser/taiga-back and htdvisser/taiga-front-dist) you can use this docker-compose configuration:
data:
image: tianon/true
volumes:
- /var/lib/postgresql/data
- /usr/local/taiga/media
- /usr/local/taiga/static
- /usr/local/taiga/logs
db:
image: postgres
environment:
POSTGRES_USER: taiga
POSTGRES_PASSWORD: password
volumes_from:
- data
taigaback:
image: htdvisser/taiga-back:stable
hostname: dev.example.com
environment:
SECRET_KEY: examplesecretkey
EMAIL_USE_TLS: True
EMAIL_HOST: smtp.gmail.com
EMAIL_PORT: 587
EMAIL_HOST_USER: [email protected]
EMAIL_HOST_PASSWORD: yourpassword
links:
- db:postgres
volumes_from:
- data
taigafront:
image: htdvisser/taiga-front-dist:stable
hostname: dev.example.com
links:
- taigaback
volumes_from:
- data
ports:
- 0.0.0.0:80:80
To initialize the database, use docker exec -it taiga-back bash and execute the following commands:
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
SECRET_KEY defaults to "insecurekey", but you might want to change this.DEBUG defaults to FalseTEMPLATE_DEBUG defaults to FalsePUBLIC_REGISTER_ENABLED defaults to TrueURLs for static files and media files from taiga-back:
MEDIA_URL defaults to "http://$HOSTNAME/media/"STATIC_URL defaults to "http://$HOSTNAME/static/"Domain configuration:
API_SCHEME defaults to "http". Use https if htdvisser/taiga-front-dist is used and SSL enabled.API_DOMAIN defaults to "$HOSTNAME"API_NAME defaults to "api"FRONT_SCHEME defaults to "http". Use https if htdvisser/taiga-front-dist is used and SSL enabled.FRONT_DOMAIN defaults to "$HOSTNAME"FRONT_NAME defaults to "front"Email configuration:
EMAIL_USE_TLS defaults to FalseEMAIL_HOST defaults to "localhost"EMAIL_PORT defaults to "25"EMAIL_HOST_USER defaults to ""EMAIL_HOST_PASSWORD defaults to ""DEFAULT_FROM_EMAIL defaults to "[email protected]"Database configuration:
POSTGRES_DB_NAME. Use to override database name.POSTGRES_USER. Use to override user specified in linked postgres container.POSTGRES_PASSWORD. Use to override password specified in linked postgres container.Content type
Image
Digest
Size
445.3 MB
Last updated
over 8 years ago
docker pull glud/taiga-back