Skip to content

Commit

Permalink
fix docker compose set up
Browse files Browse the repository at this point in the history
  • Loading branch information
emileten committed Nov 14, 2023
1 parent e507234 commit 1997b48
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
21 changes: 12 additions & 9 deletions docker-compose.custom.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
version: '3'

services:
stac-browser:
profiles:
- gunicorn
build:
context: dockerfiles
dockerfile: Dockerfile.browser
ports:
- "${MY_DOCKER_IP:-127.0.0.1}:8085:8085"
depends_on:
- stac
- database
- raster
stac:
container_name: eoapi.stac
profiles:
Expand Down Expand Up @@ -259,15 +271,6 @@ services:
volumes:
- ./.pgdata:/var/lib/postgresql/data

stac-browser:
build:
context: dockerfiles
dockerfile: Dockerfile.browser
ports:
- "${MY_DOCKER_IP:-127.0.0.1}:8085:8085"
depends_on:
- stac

networks:
default:
name: eoapi-network
23 changes: 13 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
version: '3'

services:

# change to official image when available https://github.com/radiantearth/stac-browser/pull/386
stac-browser:
build:
context: dockerfiles
dockerfile: Dockerfile.browser
ports:
- "${MY_DOCKER_IP:-127.0.0.1}:8085:8085"
depends_on:
- stac-fastapi
- titiler-pgstac
- database

stac-fastapi:
# Note:
# the official ghcr.io/stac-utils/stac-fastapi-pgstac image uses python 3.8 and uvicorn
Expand Down Expand Up @@ -132,16 +145,6 @@ services:
volumes:
- ./.pgdata:/var/lib/postgresql/data

# change to official image when available https://github.com/radiantearth/stac-browser/pull/386
stac-browser:
build:
context: dockerfiles
dockerfile: Dockerfile.browser
ports:
- "${MY_DOCKER_IP:-127.0.0.1}:8085:8085"
depends_on:
- stac-fastapi

networks:
default:
name: eoapi-network

0 comments on commit 1997b48

Please sign in to comment.