@@ -158,7 +158,7 @@ services:
158158 - CUMULUS_ASYNC_ENGINE_PACKAGER_TARGET=local/http://localhost:9324/queue/cumulus-packager
159159 - CUMULUS_ASYNC_ENGINE_STATISTICS=AWSSQS
160160 - CUMULUS_ASYNC_ENGINE_STATISTICS_TARGET=local/http://localhost:9324/queue/cumulus-statistics
161- - CUMULUS_STATIC_HOST=http://localhost
161+ - CUMULUS_STATIC_HOST=http://localhost/api
162162 - CUMULUS_AWS_S3_REGION=us-east-1
163163 - CUMULUS_AWS_S3_BUCKET=castle-data-develop
164164 - CUMULUS_AWS_S3_BUCKET_PREFIX=cumulus/ui
@@ -169,7 +169,7 @@ services:
169169 volumes :
170170 - ./api/:/go/src/app/:rw
171171 ports :
172- - ' 8080 :80'
172+ - ' 80 :80'
173173 - ' 2345:2345' # expose port to host for Go delve
174174 restart : always
175175 depends_on :
@@ -202,38 +202,38 @@ services:
202202 cumulusdb :
203203 condition : service_started
204204 # --------------------------------------
205- # featureserv:
206- # build:
207- # context: pg_featureserv
208- # platform: linux/amd64 # this is the supported architecture for postgis
209- # container_name: featureserv
210- # restart: always
211- # environment:
212- # # - DATABASE_URL=postgres://cumulus_user:cumulus_pass@cumulusdb:5432/postgres
213- # # Individual PG env vars are easier to provide in IaC instead of the DATABASE_URL
214- # - PGHOST=cumulusdb
215- # - PGPORT=5432
216- # - PGUSER=cumulus_user
217- # - PGPASSWORD=cumulus_pass
218- # - PGDATABASE=postgres
219- # - PGTARGETROLE=cumulus_reader #this env var is custom
220- # - PGFS_SERVER_HTTPPORT=8080
221- # - PGFS_SERVER_HTTPSPORT=8443
222- # - PGFS_SERVER_URLBASE=http://localhost/features
223- # - PGFS_SERVER_BASEPATH=/features
224- # - PGFS_SERVER_DEBUG=true
225- # - PGFS_WEBSITE_BASEMAPURL=http://a.tile.openstreetmap.org/{z}/{x}/{y}.png
226- # # The API provides a proxy using /features
227- # # This port exposure is for direct access/troubleshooting locally
228- # ports:
229- # - '8080:8080'
230- # depends_on:
231- # cumulusdb:
232- # condition: service_started
233- # flyway:
234- # condition: service_completed_successfully
235- # api:
236- # condition: service_started
205+ featureserv :
206+ build :
207+ context : pg_featureserv
208+ platform : linux/amd64 # this is the supported architecture for postgis
209+ container_name : featureserv
210+ restart : always
211+ environment :
212+ # - DATABASE_URL=postgres://cumulus_user:cumulus_pass@cumulusdb:5432/postgres
213+ # Individual PG env vars are easier to provide in IaC instead of the DATABASE_URL
214+ - PGHOST=cumulusdb
215+ - PGPORT=5432
216+ - PGUSER=cumulus_user
217+ - PGPASSWORD=cumulus_pass
218+ - PGDATABASE=postgres
219+ - PGTARGETROLE=cumulus_reader # this env var is custom
220+ - PGFS_SERVER_HTTPPORT=8080
221+ - PGFS_SERVER_HTTPSPORT=8443
222+ - PGFS_SERVER_URLBASE=http://localhost/features
223+ - PGFS_SERVER_BASEPATH=/features
224+ - PGFS_SERVER_DEBUG=true
225+ - PGFS_WEBSITE_BASEMAPURL=http://a.tile.openstreetmap.org/{z}/{x}/{y}.png
226+ # The API provides a proxy using /features
227+ # This port exposure is for direct access/troubleshooting locally
228+ ports :
229+ - ' 8080:8080'
230+ depends_on :
231+ cumulusdb :
232+ condition : service_started
233+ flyway :
234+ condition : service_completed_successfully
235+ api :
236+ condition : service_started
237237 # --------------------------------------
238238 # pgadmin:
239239 # image: dpage/pgadmin4
0 commit comments