-
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.
Merge branch 'master' into maintainer_field
- Loading branch information
Showing
22 changed files
with
5,969 additions
and
164 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
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 |
---|---|---|
@@ -1,117 +1,119 @@ | ||
db: | ||
container_name: qgis-plugins-db | ||
image: kartoza/postgis:9.6-2.4 | ||
environment: | ||
- ALLOW_IP_RANGE=0.0.0.0/0 | ||
- POSTGRES_USER=docker | ||
- POSTGRES_PASS=docker | ||
volumes: | ||
- ./backups:/backups | ||
restart: unless-stopped | ||
version: "3.8" | ||
services: | ||
db: | ||
container_name: qgis-plugins-db | ||
image: kartoza/postgis:9.6-2.4 | ||
environment: | ||
- ALLOW_IP_RANGE=0.0.0.0/0 | ||
- POSTGRES_USER=docker | ||
- POSTGRES_PASS=docker | ||
volumes: | ||
- ./backups:/backups | ||
restart: unless-stopped | ||
|
||
web: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-web | ||
build: docker | ||
hostname: uwsgi | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- DEBUG=False | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
- worker:worker | ||
restart: unless-stopped | ||
user: root | ||
command: uwsgi --ini /uwsgi.conf | ||
web: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-web | ||
build: docker | ||
hostname: uwsgi | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- DEBUG=False | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
- worker:worker | ||
restart: unless-stopped | ||
user: root | ||
command: uwsgi --ini /uwsgi.conf | ||
|
||
devweb: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-devweb | ||
build: docker | ||
hostname: uwsgi | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
- worker:worker | ||
restart: unless-stopped | ||
user: root | ||
ports: | ||
# for django test server | ||
- "62202:8080" | ||
# for ssh | ||
- "62203:22" | ||
devweb: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-devweb | ||
build: docker | ||
hostname: uwsgi | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
- worker:worker | ||
restart: unless-stopped | ||
user: root | ||
ports: | ||
# for django test server | ||
- "62202:8080" | ||
# for ssh | ||
- "62203:22" | ||
|
||
rabbitmq: | ||
image: library/rabbitmq:3.6 | ||
hostname: rabbitmq | ||
environment: | ||
- RABBIT_PASSWORD=rabbit_test_password | ||
- USER=rabbit_user | ||
- RABBITMQ_NODENAME=rabbit | ||
restart: unless-stopped | ||
rabbitmq: | ||
image: library/rabbitmq:3.6 | ||
hostname: rabbitmq | ||
environment: | ||
- RABBIT_PASSWORD=rabbit_test_password | ||
- USER=rabbit_user | ||
- RABBITMQ_NODENAME=rabbit | ||
restart: unless-stopped | ||
|
||
worker: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-worker | ||
build: docker | ||
hostname: uwsgi | ||
working_dir: /home/web/django_project | ||
command: celery -A plugins worker -l info | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
worker: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-worker | ||
build: docker | ||
hostname: uwsgi | ||
working_dir: /home/web/django_project | ||
command: celery -A plugins worker -l info | ||
environment: | ||
- DATABASE_NAME=gis | ||
- DATABASE_USERNAME=docker | ||
- DATABASE_PASSWORD=docker | ||
- DATABASE_HOST=db | ||
- DJANGO_SETTINGS_MODULE=settings_docker | ||
- VIRTUAL_HOST=plugins.kartoza.com | ||
- VIRTUAL_PORT=8080 | ||
- RABBITMQ_HOST=rabbitmq | ||
volumes: | ||
- ../qgis-app:/home/web/django_project | ||
- ./static:/home/web/static:rw | ||
- ./static:/home/web/media:rw | ||
links: | ||
- db:db | ||
- rabbitmq:rabbitmq | ||
|
||
nginx: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-nginx | ||
image: nginx | ||
hostname: nginx | ||
volumes: | ||
- ./sites-enabled:/etc/nginx/conf.d:ro | ||
# I dont use volumes_from as I want to use the ro modifier | ||
- ./static:/home/web/static:ro | ||
- ./static:/home/web/media:ro | ||
- ./logs:/var/log/nginx | ||
links: | ||
- web:uwsgi | ||
ports: | ||
- "62201:8080" | ||
restart: unless-stopped | ||
nginx: | ||
# Note you cannot scale if you use container_name | ||
container_name: qgis-plugins-nginx | ||
image: nginx | ||
hostname: nginx | ||
volumes: | ||
- ./sites-enabled:/etc/nginx/conf.d:ro | ||
# I dont use volumes_from as I want to use the ro modifier | ||
- ./static:/home/web/static:ro | ||
- ./static:/home/web/media:ro | ||
- ./logs:/var/log/nginx | ||
links: | ||
- web:uwsgi | ||
ports: | ||
- "62201:8080" | ||
restart: unless-stopped |
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
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
Oops, something went wrong.