-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
afabiani
committed
Jun 3, 2019
1 parent
155ac7c
commit aca042e
Showing
5 changed files
with
173 additions
and
68 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,144 @@ | ||
version: '2.2' | ||
services: | ||
|
||
db: | ||
image: geonode/postgis:10 | ||
restart: unless-stopped | ||
container_name: db4${COMPOSE_PROJECT_NAME} | ||
stdin_open: true | ||
# tty: true | ||
labels: | ||
org.geonode.component: db | ||
org.geonode.instance.name: geonode | ||
volumes: | ||
- dbdata:/var/lib/postgresql/data | ||
- dbbackups:/pg_backups | ||
env_file: | ||
- ./scripts/docker/env/production/db.env | ||
|
||
elasticsearch: | ||
image: elasticsearch:2.4.1 | ||
restart: unless-stopped | ||
container_name: elasticsearch4${COMPOSE_PROJECT_NAME} | ||
stdin_open: true | ||
# tty: true | ||
labels: | ||
org.geonode.component: elasticsearch | ||
org.geonode.instance.name: geonode | ||
|
||
rabbitmq: | ||
image: rabbitmq | ||
restart: unless-stopped | ||
container_name: rabbitmq4${COMPOSE_PROJECT_NAME} | ||
stdin_open: true | ||
tty: true | ||
labels: | ||
org.geonode.component: rabbitmq | ||
org.geonode.instance.name: geonode | ||
volumes: | ||
- rabbitmq:/var/lib/rabbitmq | ||
|
||
celery: | ||
restart: unless-stopped | ||
image: geonode/geonode:latest | ||
container_name: celery4${COMPOSE_PROJECT_NAME} | ||
stdin_open: true | ||
# tty: true | ||
labels: | ||
org.geonode.component: celery | ||
org.geonode.instance.name: geonode | ||
depends_on: | ||
- db | ||
- elasticsearch | ||
- rabbitmq | ||
# command: celery worker --app=geonode.celery_app:app -B -l INFO | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- statics:/mnt/volumes/statics | ||
- geoserver-data-dir:/geoserver_data/data | ||
env_file: | ||
- ./scripts/docker/env/production/celery.env | ||
|
||
geoserver: | ||
image: geonode/geoserver:2.14.x | ||
restart: unless-stopped | ||
container_name: geoserver4${COMPOSE_PROJECT_NAME} | ||
stdin_open: true | ||
# tty: true | ||
labels: | ||
org.geonode.component: geoserver | ||
org.geonode.instance.name: geonode | ||
depends_on: | ||
- db | ||
- elasticsearch | ||
- rabbitmq | ||
- data-dir-conf | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- geoserver-data-dir:/geoserver_data/data | ||
env_file: | ||
- ./scripts/docker/env/production/geoserver.env | ||
|
||
django: | ||
restart: unless-stopped | ||
image: geonode/geonode:latest | ||
container_name: django4${COMPOSE_PROJECT_NAME} | ||
stdin_open: true | ||
# tty: true | ||
labels: | ||
org.geonode.component: django | ||
org.geonode.instance.name: geonode | ||
depends_on: | ||
- db | ||
- elasticsearch | ||
- rabbitmq | ||
- data-dir-conf | ||
# command: paver start_django -b 0.0.0.0:8000 | ||
# command: uwsgi --ini uwsgi.ini | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- statics:/mnt/volumes/statics | ||
- geoserver-data-dir:/geoserver_data/data | ||
env_file: | ||
- ./scripts/docker/env/production/django.env | ||
|
||
geonode: | ||
image: geonode/nginx:geoserver | ||
restart: unless-stopped | ||
container_name: nginx4${COMPOSE_PROJECT_NAME} | ||
stdin_open: true | ||
# tty: true | ||
labels: | ||
org.geonode.component: nginx | ||
org.geonode.instance.name: geonode | ||
depends_on: | ||
- django | ||
- celery | ||
- geoserver | ||
ports: | ||
- "80:80" | ||
volumes: | ||
- statics:/mnt/volumes/statics | ||
|
||
data-dir-conf: | ||
image: geonode/geoserver_data:2.14.x | ||
restart: on-failure | ||
container_name: gsconf4${COMPOSE_PROJECT_NAME} | ||
labels: | ||
org.geonode.component: conf | ||
org.geonode.instance.name: geonode | ||
command: /bin/true | ||
volumes: | ||
- geoserver-data-dir:/geoserver_data/data | ||
|
||
volumes: | ||
statics: | ||
name: ${COMPOSE_PROJECT_NAME}-statics | ||
geoserver-data-dir: | ||
name: ${COMPOSE_PROJECT_NAME}-gsdatadir | ||
dbdata: | ||
name: ${COMPOSE_PROJECT_NAME}-dbdata | ||
dbbackups: | ||
name: ${COMPOSE_PROJECT_NAME}-dbbackups | ||
rabbitmq: | ||
name: ${COMPOSE_PROJECT_NAME}-rabbitmq |
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 |
---|---|---|
@@ -1,12 +1,23 @@ | ||
[uwsgi] | ||
uwsgi-socket = 0.0.0.0:8000 | ||
# http-socket = 0.0.0.0:8000 | ||
chdir = /usr/src/app/ | ||
logto = /var/log/geonode.log | ||
pidfile = /tmp/geonode.pid | ||
harakiri = 25 | ||
|
||
chdir = /usr/src/app/ | ||
module = geonode.wsgi:application | ||
master = 1 | ||
|
||
processes = 4 | ||
threads = 2 | ||
buffer-size = 8192 | ||
enable-threads = true | ||
master = true | ||
|
||
buffer-size = 32768 | ||
max-requests = 500 | ||
harakiri = 300 # respawn processes taking more than 5 minutes (300 seconds) | ||
max-requests = 500 # respawn processes after serving 5000 requests | ||
# limit-as = 1024 # avoid Errno 12 cannot allocate memory | ||
harakiri-verbose = true | ||
# cron = -1 -1 -1 -1 -1 /usr/local/bin/python /usr/src/{{project_name}}/manage.py collect_metrics -n | ||
vacuum = true | ||
thunder-lock = true |