-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade the stack from Django 2.2 to 3.2 (#233) * Upgrade the stack from Django 2.2 to 3.2 * Upgrade pip as well when installing Co-authored-by: Dimas Ciputra <[email protected]> * Update docker compose (#256) * Fix min_qg_version query in plugins.xml (#224) * fix min_qg_version query * added 0 patch value for qgis version against max_qg_version * only add patch if it has major.minor version * Update docker-compose and dockerfile * Update nginx configuration * Update smtp * Add celery beat * Add feedjack update celery task * Add metabase configuration * Update test.yaml * Add test docker-compose Co-authored-by: sumandari <[email protected]> * Fix docker-compose and dockerfile * Init starting docker dev environment * Fixing docker container conflict, updating whoosh * Update testfiles and feedback test * Update dockerfile for dev and prod * Use main branch for whoosh in requirements * Django 4 update: Requirements, dockerfile and docker-compose * Django 4 update: fixes for ifequal, ugettext_lazy, django.conf.urls.url occurences * Django 4 update: Fix deprecated readfp * Django 4 update: update dbrestore in Makefile * Django 4 update: Get static, media and backup volumes from the environment variable * Django 4 update: Use solr thumbnail default engine * Django 4 update: Fix Django warnings * Django 4 update: fix depecated tests, new migrations * Django 4 update: Update django unit tests * Django 4 update: Add email environment variables * Django 4 update: Nginx and uwsgi updates * Django 4 update: Refactoring dockerfile * Update makefile to use new docker compose * Django 4 update: Specify devweb container_name, fix typo * Use existing nginx configuration * Add DEFAULT_PLUGINS_SITE to environment variables * Add nginx dev and prod configuration files * Django 4 update: Generate a .env file in GH actions * Django 4 update: Fix typo in Makefile * Django 4 update: Use updated docker compose in test.yaml * Django 4 update: Certbot service and SSL configuration * Add a http configuration for Nginx * Django 4 update: add SSL cert renewal script * Redirect http to https --------- Co-authored-by: Étienne Trimaille <[email protected]> Co-authored-by: Dimas Ciputra <[email protected]> Co-authored-by: sumandari <[email protected]>
- Loading branch information
1 parent
119269b
commit b034b6b
Showing
81 changed files
with
1,033 additions
and
301 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dockerize/postgres_data |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# RabbitMQ host | ||
RABBITMQ_HOST=rabbitmq | ||
|
||
# Database variables | ||
DATABASE_NAME=gis | ||
DATABASE_USERNAME=docker | ||
DATABASE_PASSWORD=docker | ||
DATABASE_HOST=db | ||
|
||
# Django settings | ||
DJANGO_SETTINGS_MODULE=settings_docker | ||
DEBUG=False | ||
|
||
# Docker volumes | ||
QGISPLUGINS_STATIC_VOLUME=static-data | ||
QGISPLUGINS_MEDIA_VOLUME=media-data | ||
QGISPLUGINS_BACKUP_VOLUME=backups-data | ||
|
||
# Email variables | ||
EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend' | ||
EMAIL_HOST='' | ||
EMAIL_PORT=587 | ||
EMAIL_USE_TLS=True | ||
EMAIL_HOST_USER='' | ||
EMAIL_HOST_PASSWORD='' | ||
|
||
# URL | ||
DEFAULT_PLUGINS_SITE='https://plugins.qgis.org/' | ||
|
||
# ENV: debug or prod | ||
QGISPLUGINS_ENV=debug |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
version: '3' | ||
services: | ||
devweb: | ||
# Note you cannot scale if you use container_name | ||
image: kartoza/qgis-plugins-uwsgi:dev-latest | ||
container_name: qgis-plugins-devweb | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./media:/home/web/media:rw | ||
build: | ||
context: ${PWD}/../ | ||
dockerfile: dockerize/docker/Dockerfile | ||
target: dev | ||
ports: | ||
# for django test server | ||
- "62202:8080" | ||
# for ssh | ||
- "62203:22" | ||
|
||
beat: | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./media:/home/web/media:rw | ||
|
||
worker: | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./media:/home/web/media:rw | ||
|
||
uwsgi: | ||
container_name: qgis-plugins-uwsgi | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./media:/home/web/media:rw | ||
build: | ||
context: ${PWD}/../ | ||
dockerfile: dockerize/docker/Dockerfile | ||
target: prod | ||
|
||
db: | ||
volumes: | ||
- ./postgres_data:/var/lib/postgresql | ||
- ./backups:/backups | ||
|
||
web: | ||
volumes: | ||
- ./sites-enabled:/etc/nginx/conf.d:ro | ||
- ./static:/home/web/static:ro | ||
- ./media:/home/web/media:ro | ||
ports: | ||
- "62201:8080" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: '3' | ||
services: | ||
devweb: | ||
# Note you cannot scale if you use container_name | ||
image: kartoza/qgis-plugins-uwsgi:dev-latest | ||
container_name: qgis-plugins-devweb | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./media:/home/web/media:rw | ||
build: | ||
context: ${PWD}/../ | ||
dockerfile: dockerize/docker/Dockerfile | ||
target: dev | ||
ports: | ||
# for django test server | ||
- "62202:8080" | ||
# for ssh | ||
- "62203:22" |
Oops, something went wrong.