Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ RUN python -m pip install -U pip
WORKDIR /app

COPY stac_fastapi/ stac_fastapi/
COPY scripts/wait-for-it.sh scripts/wait-for-it.sh
COPY pyproject.toml pyproject.toml
COPY README.md README.md

Expand Down
8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ services:
- ENABLE_TRANSACTIONS_EXTENSIONS=TRUE
ports:
- "8082:8082"
volumes:
- ./scripts:/tmp/scripts
depends_on:
- database
command: bash -c "/tmp/scripts/wait-for-it.sh database:5432 && python -m stac_fastapi.pgstac.app"
command: bash -c "scripts/wait-for-it.sh database:5432 && python -m stac_fastapi.pgstac.app"
develop:
watch:
- action: rebuild
Expand Down Expand Up @@ -67,7 +65,7 @@ services:
- ./scripts:/tmp/scripts
command: >
/bin/sh -c "
/tmp/scripts/wait-for-it.sh -t 60 app:8082 &&
scripts/wait-for-it.sh -t 60 app:8082 &&
python -m pip install pip -U &&
python -m pip install requests &&
python /tmp/scripts/ingest_joplin.py http://app:8082
Expand All @@ -91,7 +89,7 @@ services:
service: app
command: >
bash -c "
/tmp/scripts/wait-for-it.sh database:5432 &&
scripts/wait-for-it.sh database:5432 &&
uvicorn stac_fastapi.pgstac.app:app --host 0.0.0.0 --port 8082 --proxy-headers --forwarded-allow-ips=* --root-path=/api/v1/pgstac
"

Expand Down
Loading