forked from GeoNode/geonode
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
88 lines (80 loc) · 2.02 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '2'
services:
database:
image: camptocamp/postgis:9.5
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=secret
volumes:
- postgresql_data:/var/lib/postgresql/data
elasticsearch:
image: elasticsearch:5.2
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
rabbitmq:
image: rabbitmq:3.6
volumes:
- rabbitmq_data:/var/lib/rabbitmq
django:
image: camptocamp/geonode_django
build: .
links:
- database
- elasticsearch
- rabbitmq
- geoserver
# uncomment following line for production setup
# command: gunicorn geonode.wsgi --forwarded-allow-ips=* --workers=3 --bind=0.0.0.0 --worker-tmp-dir=/tmp --access-logfile=- --error-logfile=-
ports:
- "8000:8000"
environment:
- DJANGO_SETTINGS_MODULE=geonode.settings
- ALLOWED_HOSTS='[''localhost'']'
- C_FORCE_ROOT=1
- BROKER_URL=amqp://guest:guest@rabbitmq:5672/
- DB_HOST=database
- DB_PORT=5432
- DB_ADMIN_USER=postgres
- DB_ADMIN_PASSWORD=secret
- DB_GEONODE_NAME=geonode
- DB_GEONODE_USER=geonode
- DB_GEONODE_PASSWORD=secret
- DB_GEOSERVER_NAME=geoserver
- DB_GEOSERVER_USER=geoserver
- DB_GEOSERVER_PASSWORD=secret
volumes:
- geonode_config:/mnt/geonode_config
- geonode_data:/mnt/geonode_data
celery:
image: camptocamp/geonode_django
links:
- rabbitmq
- database
- elasticsearch
entrypoint: celery
command:
- worker
- --app=geonode.celery_app:app
- --broker=amqp://guest:guest@rabbitmq:5672/
- -B
- -l
- DEBUG
- -E
env_file:
- ./scripts/docker/env/production/django.env
geoserver:
image: camptocamp/geonode_geoserver
links:
- database
ports:
- "8080:8080"
volumes:
- geoserver_datadir:/mnt/geoserver_datadir
volumes:
rabbitmq_data:
elasticsearch_data:
geoserver_datadir:
geoserver_data:
postgresql_data:
geonode_data:
geonode_config: