forked from mapmint/mapmint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (70 loc) · 2.63 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
version: '3'
services:
mapmint3D:
image: nginx
ports:
- 9090:9090
volumes:
- ./GSoC/homepage.tmpl:/var/www/html/homepage.tmpl
- ./mapmint/mapmint-ui/templates/website/demo/preview-model-1.tmpl:/var/www/html/preview-model-1.tmpl
- ./mapmint/mapmint-ui/templates/website/demo/preview-model-2.tmpl:/var/www/html/preview-model-2.tmpl
- ./mapmint/mapmint-ui/templates/website/demo/preview-model-3.tmpl:/var/www/html/preview-model-3.tmpl
- ./mapmint/mapmint-ui/templates/website/demo/preview-model-4.tmpl:/var/www/html/preview-model-4.tmpl
zookernel:
build: .
image: geolabs/mapmint
ports:
- "80:80"
volumes:
- ./docker/main.cfg:/usr/lib/cgi-bin/main.cfg
- ./docker/oas.cfg:/usr/lib/cgi-bin/oas.cfg
- ./docker/default.conf:/etc/apache2/sites-available/000-default.conf
- ./zoo-project/zoo-services/utils/open-api/server/publish.py:/usr/lib/cgi-bin/publish.py
- ./zoo-project/zoo-services/utils/open-api/server/subscriber.py:/usr/lib/cgi-bin/subscriber.py
- ./docker/.htaccess:/var/www/html/.htaccess
- ./zoo-project/zoo-services/utils/open-api/templates/index.html:/var/www/index.html
- ./zoo-project/zoo-services/utils/open-api/static:/var/www/html/static
- ./mapmint/mapmint-ui/templates/display_3D.tmpl:/mapmint/mapmint-ui/templates/aryan_display.tmpl
- ./mapmint:/mapmint
depends_on:
- pgbouncer
environment:
- LC_ALL=en_US.utf-8
- LANG=en_US.itf-8
- ZOO_REDIS_HOST=redis
websocketd:
build: ./docker/websocketd
ports:
- 8888:8888
environment:
- ZOO_REDIS_HOST=redis
volumes:
- ./zoo-project/zoo-services/utils/open-api/server/subscriber.py:/shell.py
command: ["--port=8888", "/shell.py"]
pg:
image: postgis/postgis:10-2.5-alpine #postgres:9.6.18-alpine
restart: always
environment:
POSTGRES_USER: zoo
POSTGRES_PASSWORD: zoo
POSTGRES_DB: zoo
volumes:
# Load the zoo kernel schema
- ./zoo-project/zoo-kernel/sql/schema.sql:/docker-entrypoint-initdb.d/1-schema.sql
- ./mapmint/template/sql/mmdb.sql:/docker-entrypoint-initdb.d/2-mmdb.sql
- ./mapmint/template/sql/indicators.sql:/docker-entrypoint-initdb.d/3-indicators.sql
- ./mapmint/template/sql/tables.sql:/docker-entrypoint-initdb.d/4-tables.sql
pgbouncer:
image: edoburu/pgbouncer:1.8.1
environment:
DATABASE_URL: "postgres://zoo:zoo@pg/zoo"
MAX_CLIENT_CONN: 1000
MAX_DB_CONNECTIONS: 100
DEFAULT_POOL_SIZE: 100
POOL_MODE: transaction
ports:
- "5432:5432"
depends_on:
- pg
redis:
image: redis:6.0.9