@@ -36,27 +36,13 @@ services:
3636 - 5432
3737 volumes :
3838 - db_cluster:/var/lib/postgresql/data
39- mariadb :
40- # The MariaDB service is Macrostrat's v1 database service.
41- # This is currently being removed from the active configuration
42- # and relegated to a 'legacy' profile. But for now, we need it
43- # at least for inspection purposes.
44- image : mariadb:10.10
45- ports :
46- - " 3306:3306"
47- environment :
48- - MARIADB_ROOT_PASSWORD
49- volumes :
50- - mysql_cluster:/var/lib/mysql
51- restart : always
52- profiles :
53- - legacy
5439 api_v2 :
5540 image : hub.opensciencegrid.org/macrostrat/macrostrat-api:main
5641 build : ${MACROSTRAT_API_SRC:-""}
5742 environment :
58- - MACROSTRAT_DATABASE=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@database:5432/${POSTGRES_DB}
43+ - MACROSTRAT_DATABASE=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@database:5432/${POSTGRES_DB}?sslmode=disable
5944 - ELEVATION_DATABASE=${ELEVATION_DATABASE_URL}
45+ - NODE_TLS_REJECT_UNAUTHORIZED=0
6046 api_v3 :
6147 # Unlike other services, the API v3 service is packaged as part of this repository.
6248 # This is because its functionality is tightly coupled in many cases with the command-line
@@ -132,8 +118,10 @@ services:
132118 - NODE_TLS_REJECT_UNAUTHORIZED=0
133119 # Secret key must be shared with the API that mints the JWT (in this case, the Macrostrat dev API)
134120 - SECRET_KEY=${SECRET_KEY}
121+ # The map-cache service is a prototype caching layer for local map tiles.
135122 map-cache :
136123 build : ${MACROSTRAT_MAP_CACHE_SRC:-""}
124+ profiles : ["map-cache"]
137125 environment :
138126 - MAPBOX_API_TOKEN=${MAPBOX_TOKEN}
139127 - MAP_CACHE_DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@database:5432/map_cache
@@ -156,6 +144,20 @@ services:
156144 - POSTGRES_PASSWORD=postgres
157145 - POSTGRES_USER=postgres
158146 - POSTGRES_DB=macrostrat
147+ # The MariaDB service is Macrostrat's v1 database service.
148+ # This is currently being removed from the active configuration
149+ # and relegated to a 'legacy' profile. But for now, we need it
150+ # at least for inspection purposes.
151+ mariadb :
152+ image : mariadb:10.10
153+ ports :
154+ - " 3306:3306"
155+ environment :
156+ - MARIADB_ROOT_PASSWORD
157+ volumes :
158+ - mysql_cluster:/var/lib/mysql
159+ restart : always
160+ profiles : ["legacy"]
159161volumes :
160162 db_cluster :
161163 mysql_cluster :
0 commit comments