-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
141 lines (130 loc) · 3.85 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
version: "3"
services:
# TerraMA2 Web Application
webapp:
image: "${TERRAMA2_DOCKER_REGISTRY}/terrama2-webapp:${TERRAMA2_TAG}"
restart: unless-stopped
ports:
- "${TERRAMA2_WEBAPP_ADDRESS}:36000"
volumes:
- "${TERRAMA2_DATA_DIR}:/data"
- "terrama2_shared_vol:/shared-data"
- "${TERRAMA2_CONFIG_DIR}/terrama2_webapp_db.json:/opt/terrama2/${TERRAMA2_TAG}/webapp/config/db.json"
- "${TERRAMA2_CONFIG_DIR}/terrama2_webapp_settings.json:/opt/terrama2/${TERRAMA2_TAG}/webapp/config/settings.json"
- "${TERRAMA2_CONFIG_DIR}/.pgpass:/root/.pgpass"
networks:
- net
# TerraMA2 Web Monitor
webmonitor:
image: "${TERRAMA2_DOCKER_REGISTRY}/terrama2-webmonitor:${TERRAMA2_TAG}"
restart: unless-stopped
ports:
- "${TERRAMA2_WEBMONITOR_ADDRESS}:36001"
depends_on:
- webapp
volumes:
- "${TERRAMA2_DATA_DIR}:/data"
- "terrama2_shared_vol:/shared-data"
- "${TERRAMA2_CONFIG_DIR}/terrama2_webmonitor.json:/opt/terrama2/${TERRAMA2_TAG}/webmonitor/config/instances/default.json"
- "webmonitor_images:/opt/terrama2/${TERRAMA2_TAG}/webmonitor/public/images"
- "${TERRAMA2_CONFIG_DIR}/.pgpass:/root/.pgpass"
networks:
- net
links:
- webapp
# TerraMA2 Collector Service using TerraMA2 Base
collector:
image: "${TERRAMA2_DOCKER_REGISTRY}/terrama2:${TERRAMA2_TAG}"
restart: unless-stopped
entrypoint:
- /usr/local/bin/start_terrama2_service.sh
- COLLECTOR
- "6543"
volumes:
- "${TERRAMA2_DATA_DIR}:/data"
- "terrama2_shared_vol:/shared-data"
tty: true
networks:
- net
# TerraMA2 Analysis Service using TerraMA2 Base
analysis:
image: "${TERRAMA2_DOCKER_REGISTRY}/terrama2:${TERRAMA2_TAG}"
restart: unless-stopped
entrypoint:
- /usr/local/bin/start_terrama2_service.sh
- ANALYSIS
- "6544"
volumes:
- "${TERRAMA2_DATA_DIR}:/data"
- "terrama2_shared_vol:/shared-data"
tty: true
networks:
- net
# TerraMA2 View Service using TerraMA2 Base
view:
image: "${TERRAMA2_DOCKER_REGISTRY}/terrama2:${TERRAMA2_TAG}"
restart: unless-stopped
entrypoint:
- /usr/local/bin/start_terrama2_service.sh
- VIEW
- "6545"
volumes:
- "${TERRAMA2_DATA_DIR}:/data"
- "terrama2_shared_vol:/shared-data"
tty: true
networks:
- net
# TerraMA2 Alert Service using TerraMA2 Base
alert:
image: "${TERRAMA2_DOCKER_REGISTRY}/terrama2:${TERRAMA2_TAG}"
restart: unless-stopped
entrypoint:
- /usr/local/bin/start_terrama2_service.sh
- ALERT
- "6546"
volumes:
- "${TERRAMA2_DATA_DIR}:/data"
- "terrama2_shared_vol:/shared-data"
tty: true
networks:
- net
# TerraMA2 Interpolator Service using TerraMA2 Base
interpolator:
image: "${TERRAMA2_DOCKER_REGISTRY}/terrama2:${TERRAMA2_TAG}"
restart: unless-stopped
entrypoint:
- /usr/local/bin/start_terrama2_service.sh
- INTERPOLATOR
- "6547"
volumes:
- "${TERRAMA2_DATA_DIR}:/data"
- "terrama2_shared_vol:/shared-data"
tty: true
networks:
- net
# Geoserver
geoserver:
container_name: "${TERRAMA2_PROJECT_NAME}_geoserver"
image: "${TERRAMA2_DOCKER_REGISTRY}/geoserver:2.11"
restart: always
ports:
- "${TERRAMA2_GEOSERVER_ADDRESS}:8080"
volumes:
- "${TERRAMA2_DATA_DIR}:/data"
- terrama2_shared_vol:/shared-data
- geoserver_vol:/opt/geoserver/data_dir
- ${TERRAMA2_CONFIG_DIR}/terrama2_geoserver_setenv.sh:/usr/local/tomcat/bin/setenv.sh
environment:
- "GEOSERVER_URL=${TERRAMA2_BASE_PATH}geoserver"
- "GEOSERVER_DATA_DIR=/opt/geoserver/data_dir"
networks:
- net
networks:
net:
volumes:
data_vol:
geoserver_vol:
webmonitor_images:
terrama2_shared_vol:
external:
name: terrama2_shared_vol