-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
221 lines (221 loc) · 7.48 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
services:
cumulusdb:
image: postgis/postgis:13-3.1
restart: always
environment:
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
# --------------------------------------
elasticmq:
build:
context: elasticmq
ports:
- "9324:9324"
- "9325:9325"
restart: always
# --------------------------------------
listener:
build:
context: async_listener
environment:
- AWS_ACCESS_KEY_ID=x
- AWS_SECRET_ACCESS_KEY=x
- AWS_REGION=us-east-1
- CUMULUS_DBUSER=cumulus_user
- CUMULUS_DBPASS=cumulus_pass
- CUMULUS_DBNAME=postgres
- CUMULUS_DBHOST=cumulusdb
- CUMULUS_DBSSLMODE=disable
- CUMULUS_ASYNC_ENGINE_PACKAGER=AWSSQS
- CUMULUS_ASYNC_ENGINE_PACKAGER_TARGET=local/http://elasticmq:9324/queue/cumulus-packager
- CUMULUS_ASYNC_ENGINE_STATISTICS=AWSSQS
- CUMULUS_ASYNC_ENGINE_STATISTICS_TARGET=local/http://elasticmq:9324/queue/cumulus-statistics
- CUMULUS_ASYNC_ENGINE_GEOPROCESS=AWSSQS
- CUMULUS_ASYNC_ENGINE_GEOPROCESS_TARGET=local/http://elasticmq:9324/queue/cumulus-geoprocess
- CUMULUS_MIN_RECONN=10s
- CUMULUS_MAX_RECONN=1m
depends_on:
cumulusdb:
condition: service_started
restart: always
# --------------------------------------
geoprocess:
build:
context: async_geoprocess
args:
# TOGGLE THE BRANCH, COMMIT, RELEASE, ETC. OF BUILD DEPENDENCY YOU'RE WORKING AGAINST
# ON `docker compose up --build` BY SETTING CUMULUS_GEOPROC_PIP_URL
- CUMULUS_GEOPROC_PIP_URL=git+https://github.com/USACE/cumulus-geoproc@main
environment:
- AWS_SQS_ENDPOINT=elasticmq:9324
- AWS_S3_ENDPOINT=minio:9000
- ENDPOINT_URL_SQS=http://elasticmq:9324
- ENDPOINT_URL_S3=http://minio:9000
- AWS_DEFAULT_REGION=us-east-1
- AWS_VIRTUAL_HOSTING=FALSE
- AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
- AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- AWS_HTTPS=NO
- APPLICATION_KEY=appkey
- USE_SSL=False
- QUEUE_NAME=cumulus-geoprocess
- CUMULUS_MOCK_S3_UPLOAD=FALSE
- CUMULUS_API_URL=http://api
- HTTP2=False
- GDAL_DISABLE_READDIR_ON_OPEN=YES
- LOGGER_LEVEL=DEBUG
volumes:
- ./_volumes/async_geoprocess/tmp:/tmp
# local testing purposes
# - ./async_geoprocess:/app/async_geoprocess:rw
restart: always
depends_on:
- api
# --------------------------------------
packager:
build:
context: async_packager
environment:
- AWS_SQS_ENDPOINT=elasticmq:9324
- AWS_S3_ENDPOINT=minio:9000
- ENDPOINT_URL_SQS=http://elasticmq:9324
- ENDPOINT_URL_S3=http://minio:9000
- AWS_DEFAULT_REGION=us-east-1
- AWS_VIRTUAL_HOSTING=FALSE
- AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
- AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- AWS_HTTPS=NO
- APPLICATION_KEY=appkey
- USE_SSL=False
- QUEUE_NAME_PACKAGER=cumulus-packager
- CUMULUS_MOCK_S3_UPLOAD=FALSE
- CUMULUS_API_URL=http://api
- HTTP2=False
- GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR
- LOGGER_LEVEL=INFO
- PACKAGER_UPDATE_INTERVAL=5
# - CPL_VSIL_CURL_CHUNK_SIZE=20000000
# - CPL_CURL_VERBOSE=1
# Volume to persist packager created file
volumes:
- ./_volumes/async_packager/output:/output:rw
# local testing purposes
# - ./async_packager:/app/async_packager:rw
restart: always
cpus: 1.0
mem_limit: 2048m
depends_on:
elasticmq:
condition: service_started
# --------------------------------------
# statistics:
# build:
# context: async_statistics
# environment:
# - AWS_REGION=$AWS_REGION
# - AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
# - AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
# - CUMULUS_MOCK_S3_UPLOAD=TRUE
# - QUEUE_NAME_STATISTICS=cumulus-statistics
# - CUMULUS_API_URL=http://api:80
# - CUMULUS_DBUSER=cumulus_user
# - CUMULUS_DBPASS=cumulus_pass
# - CUMULUS_DBNAME=postgres
# - CUMULUS_DBHOST=cumulusdb
# - CUMULUS_DBSSLMODE=disable
# - ENDPOINT_URL=http://elasticmq:9324
# restart: always
# --------------------------------------
api:
build:
context: api
environment:
- AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
- AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
- AWS_DEFAULT_REGION=us-east-1
- AWS_REGION=us-east-1
- CUMULUS_APPLICATION_KEY=appkey
# CUMULUS_AUTH_ENVIRONMENT; OPTIONS: MOCK | DEVELOP | STABLE
- CUMULUS_AUTH_ENVIRONMENT=MOCK
- CUMULUS_DOWNLOAD_DEFAULT_FORMAT=dss7
- CUMULUS_DBUSER=cumulus_user
- CUMULUS_DBPASS=cumulus_pass
- CUMULUS_DBNAME=postgres
- CUMULUS_DBHOST=cumulusdb
- CUMULUS_DBSSLMODE=disable
- CUMULUS_ASYNC_ENGINE_ACQUISITION=MOCK
- CUMULUS_ASYNC_ENGINE_ACQUISITION_TARGET=""
- CUMULUS_ASYNC_ENGINE_PACKAGER=AWSSQS
- CUMULUS_ASYNC_ENGINE_PACKAGER_TARGET=local/http://localhost:9324/queue/cumulus-packager
- CUMULUS_ASYNC_ENGINE_STATISTICS=AWSSQS
- CUMULUS_ASYNC_ENGINE_STATISTICS_TARGET=local/http://localhost:9324/queue/cumulus-statistics
- CUMULUS_STATIC_HOST=http://localhost
- CUMULUS_AWS_S3_REGION=us-east-1
- CUMULUS_AWS_S3_BUCKET=castle-data-develop
- CUMULUS_AWS_S3_ENDPOINT=http://minio:9000
- CUMULUS_AWS_S3_DISABLE_SSL=True
- CUMULUS_AWS_S3_FORCE_PATH_STYLE=True
- PG_FEATURESERV_URL=http://featureserv:8080
ports:
- "80:80"
restart: always
depends_on:
cumulusdb:
condition: service_started
flyway:
condition: service_completed_successfully
# --------------------------------------
flyway:
build:
context: sql
restart: on-failure
command: -connectRetries=60 migrate
environment:
- FLYWAY_EDITION=community
# Exclude Local Seed Data; Uncomment Line Below
# - FLYWAY_LOCATIONS=filesystem:/flyway/sql/common,filesystem:/flyway/sql/develop
# Include Local Seed Data; Uncomment Line Below (Comment Line Above)
- FLYWAY_LOCATIONS=filesystem:/flyway/sql/common,filesystem:/flyway/sql/develop,filesystem:/flyway/sql/local
- FLYWAY_PASSWORD=postgres
- FLYWAY_SCHEMAS=cumulus
- FLYWAY_URL=jdbc:postgresql://cumulusdb:5432/postgres
- FLYWAY_USER=postgres
depends_on:
cumulusdb:
condition: service_started
# --------------------------------------
featureserv:
image: pramsey/pg_featureserv
container_name: featureserv
restart: always
environment:
- DATABASE_URL=postgres://cumulus_user:cumulus_pass@cumulusdb:5432/postgres
- PGFS_SERVER_HTTPPORT=8080
- PGFS_SERVER_HTTPSPORT=8443
- PGFS_SERVER_URLBASE=http://localhost/features
- PGFS_SERVER_BASEPATH=/features
- PGFS_SERVER_DEBUG=true
- PGFS_WEBSITE_BASEMAPURL=http://a.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png
depends_on:
cumulusdb:
condition: service_started
flyway:
condition: service_completed_successfully
api:
condition: service_started
# --------------------------------------
# pgadmin:
# image: dpage/pgadmin4
# environment:
# - PGADMIN_DEFAULT_PASSWORD=postgres
# ports:
# - "7000:80"
# restart: always
# dbdocs:
# image: nginx
# ports:
# - "8123:80"
# volumes:
# - ./docs/db-docs/schemaspy:/usr/share/nginx/html