Skip to content

Commit 1997b48

Browse files
committed
fix docker compose set up
1 parent e507234 commit 1997b48

File tree

2 files changed

+25
-19
lines changed

2 files changed

+25
-19
lines changed

docker-compose.custom.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
version: '3'
22

33
services:
4+
stac-browser:
5+
profiles:
6+
- gunicorn
7+
build:
8+
context: dockerfiles
9+
dockerfile: Dockerfile.browser
10+
ports:
11+
- "${MY_DOCKER_IP:-127.0.0.1}:8085:8085"
12+
depends_on:
13+
- stac
14+
- database
15+
- raster
416
stac:
517
container_name: eoapi.stac
618
profiles:
@@ -259,15 +271,6 @@ services:
259271
volumes:
260272
- ./.pgdata:/var/lib/postgresql/data
261273

262-
stac-browser:
263-
build:
264-
context: dockerfiles
265-
dockerfile: Dockerfile.browser
266-
ports:
267-
- "${MY_DOCKER_IP:-127.0.0.1}:8085:8085"
268-
depends_on:
269-
- stac
270-
271274
networks:
272275
default:
273276
name: eoapi-network

docker-compose.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
version: '3'
22

33
services:
4+
5+
# change to official image when available https://github.com/radiantearth/stac-browser/pull/386
6+
stac-browser:
7+
build:
8+
context: dockerfiles
9+
dockerfile: Dockerfile.browser
10+
ports:
11+
- "${MY_DOCKER_IP:-127.0.0.1}:8085:8085"
12+
depends_on:
13+
- stac-fastapi
14+
- titiler-pgstac
15+
- database
16+
417
stac-fastapi:
518
# Note:
619
# the official ghcr.io/stac-utils/stac-fastapi-pgstac image uses python 3.8 and uvicorn
@@ -132,16 +145,6 @@ services:
132145
volumes:
133146
- ./.pgdata:/var/lib/postgresql/data
134147

135-
# change to official image when available https://github.com/radiantearth/stac-browser/pull/386
136-
stac-browser:
137-
build:
138-
context: dockerfiles
139-
dockerfile: Dockerfile.browser
140-
ports:
141-
- "${MY_DOCKER_IP:-127.0.0.1}:8085:8085"
142-
depends_on:
143-
- stac-fastapi
144-
145148
networks:
146149
default:
147150
name: eoapi-network

0 commit comments

Comments
 (0)