Skip to content

Commit 26b031a

Browse files
authored
chore(docker-compose): add stac-browser to docker compose (#106)
1 parent a7ca408 commit 26b031a

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

docker-compose.yaml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
stac-pg:
33
profiles: [""] # default profile
4-
image: ghcr.io/stac-utils/stac-fastapi-pgstac:5.0.2
4+
image: ghcr.io/stac-utils/stac-fastapi-pgstac:6.1.1
55
environment:
66
APP_HOST: 0.0.0.0
77
APP_PORT: 8001
@@ -15,12 +15,14 @@ services:
1515
DB_MIN_CONN_SIZE: 1
1616
DB_MAX_CONN_SIZE: 1
1717
USE_API_HYDRATE: ${USE_API_HYDRATE:-false}
18+
CORS_HEADERS: "Content-Type,Authorization"
1819
hostname: stac
1920
ports:
2021
- "8001:8001"
2122
depends_on:
2223
- database-pg
23-
command: bash -c "./scripts/wait-for-it.sh database-pg:5432 && python -m stac_fastapi.pgstac.app"
24+
command: python -m stac_fastapi.pgstac.app
25+
# command: bash -c "./scripts/wait-for-it.sh database-pg:5432 && python -m stac_fastapi.pgstac.app"
2426

2527
stac-os:
2628
profiles: ["os"]
@@ -107,3 +109,18 @@ services:
107109
PORT: 8888
108110
ports:
109111
- "8888:8888"
112+
113+
stac-browser:
114+
image: ghcr.io/radiantearth/stac-browser:latest
115+
ports:
116+
- 8080:8080
117+
environment:
118+
SB_catalogUrl: "http://localhost:8000"
119+
SB_authConfig: |
120+
{
121+
"type": "openIdConnect",
122+
"openIdConnectUrl": "http://localhost:8888/.well-known/openid-configuration",
123+
"oidcOptions": {
124+
"client_id": "stac-browser"
125+
}
126+
}

0 commit comments

Comments
 (0)