Add taiga-back settings and remove networks

This commit is contained in:
Yamila Moreno 2020-09-17 16:07:32 +02:00
parent 5654077215
commit 5e26b49ad0
4 changed files with 39 additions and 19 deletions

View File

@ -1,3 +1,2 @@
db-data
static-data
config.py

View File

@ -7,8 +7,6 @@ services:
DJANGO_SETTINGS_MODULE: "settings.config"
volumes:
- ./taiga-back/settings/config.py:/taiga-back/settings/config.py
networks:
- backend
depends_on:
- taiga-db
entrypoint: "python manage.py migrate"
@ -20,8 +18,6 @@ services:
volumes:
- ./taiga-back/settings/config.py:/taiga-back/settings/config.py
- ./static-data:/taiga-back/static
networks:
- backend
entrypoint: "python manage.py collectstatic --no-input"
taiga-sampledata:
@ -30,8 +26,6 @@ services:
DJANGO_SETTINGS_MODULE: "settings.config"
volumes:
- ./taiga-back/settings/config.py:/taiga-back/settings/config.py
networks:
- backend
depends_on:
- taiga-db
entrypoint: bash -c "python manage.py loaddata initial_user && python manage.py loaddata initial_project_templates && python manage.py sample_data"
@ -43,8 +37,6 @@ services:
volumes:
- ./taiga-back/settings/config.py:/taiga-back/settings/config.py
- ./static-data:/taiga-back/static
networks:
- backend
depends_on:
- taiga-db
entrypoint: "python manage.py"

View File

@ -9,8 +9,6 @@ services:
POSTGRES_PASSWORD: taiga
ports:
- "5432:5432"
networks:
- backend
volumes:
- ./db-data:/var/lib/postgresql/data
@ -23,8 +21,6 @@ services:
volumes:
- ./taiga-back/settings/config.py:/taiga-back/settings/config.py
- ./static-data:/taiga-back/static
networks:
- backend
depends_on:
- taiga-db
@ -34,9 +30,3 @@ services:
- "9000:80"
volumes:
- ./taiga-front/conf/conf.json:/usr/share/nginx/html/conf.json
networks:
- frontend
networks:
backend:
frontend:

View File

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2014-2017 Andrey Antukh <niwi@niwi.nz>
# Copyright (C) 2014-2017 Jesús Espino <jespinog@gmail.com>
# Copyright (C) 2014-2017 David Barragán <bameda@dbarragan.com>
# Copyright (C) 2014-2017 Alejandro Alonso <alejandro.alonso@kaleidos.net>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from .common import *
# Check all the available settings in:
# https://github.com/taigaio/taiga-back/blob/master/settings/common.py
#########################################
## GENERIC
#########################################
DEBUG = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'taiga',
'USER': 'taiga',
'PASSWORD': 'taiga',
'HOST': 'taiga-db',
'PORT': '5432',
}
}