Skip to content

Commit

Permalink
feat(cms): changed all settings files to default pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiomario committed Jul 9, 2024
1 parent 70030c0 commit b224199
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 2 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions app/eleicoes/votepeloclima/settings/__ini__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .base import *
File renamed without changes.
1 change: 1 addition & 0 deletions app/org_nossas/nossas/settings/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .base import *
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .settings import *
from .base import *


MIDDLEWARE = (
Expand Down
31 changes: 30 additions & 1 deletion deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,41 @@ services:
- traefik.http.routers.cms.tls.certresolver=myresolver
- traefik.http.routers.cms.rule=${TRAEFIK_ROUTERS_RULE:-"HostRegexp(`cms.staging.bonde.org`)"}

eleicaodoano:
image: ${ELEICAO_DO_ANO_DOCKER_IMAGE:-nossas/cms:latest}
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
pull_policy: always
environment:
- DJANGO_SETTINGS_MODULE=eleicoes.eleicao.settings.base
- DEBUG=${DEBUG:-True}
- ALLOWED_HOSTS=${ALLOWED_HOSTS:-"docker.localhost"}
- CMS_DATABASE_URL=${CMS_DATABASE_URL}
- BONDE_DATABASE_URL=${BONDE_DATABASE_URL}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_STORAGE_BUCKET_NAME=${AWS_STORAGE_BUCKET_NAME}
- RECAPTCHA_PUBLIC_KEY=${RECAPTCHA_PUBLIC_KEY}
- RECAPTCHA_PRIVATE_KEY=${RECAPTCHA_PRIVATE_KEY}
- DISABLE_RECAPTCHA=${DISABLE_RECAPTCHA}
- BONDE_ACTION_API_URL=${BONDE_ACTION_API_URL}
- BONDE_ACTION_SECRET_KEY=${BONDE_ACTION_SECRET_KEY}
- ETCD_HOST=${ETCD_HOST:-"etcd"}
- ETCD_PORT=${ETCD_PORT:-2379}
labels:
- traefik.enable=true
- traefik.http.routers.cms.priority=10
- traefik.http.services.cms.loadbalancer.server.port=8000
- traefik.http.routers.cms.tls=true
- traefik.http.routers.cms.tls.certresolver=myresolver
- traefik.http.routers.cms.rule=${TRAEFIK_ROUTERS_RULE:-"HostRegexp(`cms.staging.bonde.org`)"}


nossas:
image: ${NOSSAS_DOCKER_IMAGE:-nossas/cms:latest}
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
pull_policy: always
environment:
- DJANGO_SETTINGS_MODULE=nossas.settings_prod
- DJANGO_SETTINGS_MODULE=nossas.settings.production
- DEBUG=${DEBUG:-True}
- ALLOWED_HOSTS=${ALLOWED_HOSTS:-"docker.localhost"}
- CMS_DATABASE_URL=${NOSSAS_DATABASE_URL}
Expand Down

0 comments on commit b224199

Please sign in to comment.