-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathdocker-compose.yml
121 lines (121 loc) · 2.73 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: "3"
services:
postgis:
image: kartoza/postgis:13
volumes:
- postgis-data:/var/lib/postgresql
# - dbbackups:/backups
env_file:
- ./env/postgis.env
expose:
- "5432"
restart: on-failure
healthcheck:
test: "exit 0"
networks:
-cartoview-internal:
elasticsearch:
image: elasticsearch:5.6.12-alpine
restart: unless-stopped
stdin_open: true
tty: true
expose:
- "9300"
- "9200"
networks:
-cartoview-internal:
rabbitmq:
image: rabbitmq:latest
restart: unless-stopped
expose:
- "5672"
- "15672"
networks:
-cartoview-internal:
data-dir-conf:
image: geonode/geoserver_data:2.19.x
restart: on-failure
container_name: gsconf4cartoview
command: /bin/true
volumes:
- geoserver-dir:/geoserver_data/data
geoserver:
image: geonode/geoserver:2.19.x
depends_on:
- postgis
- data-dir-conf
restart: unless-stopped
expose:
- "8080"
volumes:
- geoserver-dir:/geoserver_data/data
env_file:
- ./env/tomcat.env
networks:
-cartoview-external:
ipv4_address: 10.5.0.2
-cartoview-internal:
cartoview:
build: .
image: cartoview:latest
container_name: cartoview_django
command: bash -c "python manage.py cherry_server"
restart: unless-stopped
hostname: cartoview
depends_on:
- postgis
- geoserver
env_file:
- ./env/django.env
volumes:
- "./:/usr/src/carto_app/cartoview"
- geoserver-dir:/geoserver_data/data
networks:
-cartoview-external:
ipv4_address: 10.5.0.3
-cartoview-internal:
expose:
- "8000"
celery:
image: cartoview:latest
container_name: cartoview_celery
command: bash -c "celery -A cartoview.celery:app worker -B -E --statedb=./worker.state -s ./celerybeat-schedule --loglevel=INFO --concurrency=10 -n worker1@%h -f /var/log/celery.log"
restart: unless-stopped
hostname: celery
depends_on:
- postgis
- rabbitmq
- geoserver
stdin_open: true
env_file:
- ./env/celery.env
volumes:
- "./:/code/"
networks:
-cartoview-internal:
nginx:
image: nginx:alpine
restart: unless-stopped
expose:
- "80"
volumes:
- ./scripts/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./static/:/cartoview/static/
- ./uploaded/:/cartoview/uploaded/
networks:
-cartoview-external:
ipv4_address: 10.5.0.4
-cartoview-internal:
ports:
- "80:80"
networks:
-cartoview-external:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
-cartoview-internal:
internal: true
volumes:
geoserver-dir:
postgis-data: