Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
feat(docker): update and fix compose file, add local option
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahhoward committed Aug 26, 2023
1 parent 65fbd40 commit 18ee12b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SINGULARITY_TAG=v0.3.0
35 changes: 35 additions & 0 deletions compose-local-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: "3"

services:
db:
extends:
file: docker-compose.yml
service: db
singularity_api:
extends:
file: docker-compose.yml
service: singularity_api
depends_on:
db:
condition: service_healthy
singularity_dataset_worker:
extends:
file: docker-compose.yml
service: singularity_dataset_worker
depends_on:
db:
condition: service_healthy
motion:
build: .
entrypoint: motion --experimentalSingularityStore --experimentalRemoteSingularityAPIUrl=http://singularity_api:9090
ports:
- 40080:40080
environment:
- MOTION_STORE_DIR=/usr/src/app/storage
volumes:
- motion-singularity-volume:/usr/src/app/storage
depends_on:
- singularity_api

volumes:
motion-singularity-volume:
12 changes: 9 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ services:
- 5432:5432

singularity_api:
image: ghcr.io/data-preservation-programs/singularity:main
image: ghcr.io/data-preservation-programs/singularity:${SINGULARITY_TAG}
command: run api --bind :9090
volumes:
- motion-singularity-volume:/usr/src/app/storage
ports:
- 9090:9090
environment:
Expand All @@ -30,7 +32,9 @@ services:
condition: service_healthy

singularity_dataset_worker:
image: ghcr.io/data-preservation-programs/singularity:main
image: ghcr.io/data-preservation-programs/singularity:${SINGULARITY_TAG}
volumes:
- motion-singularity-volume:/usr/src/app/storage
command: run dataset-worker
environment:
DATABASE_CONNECTION_STRING: postgres://postgres:postgres@db:5432/singularity
Expand All @@ -40,13 +44,15 @@ services:

motion:
image: ghcr.io/filecoin-project/motion:main
entrypoint: motion --experimentalSingularityStore --experimentalRemoteSingularityAPIUrl=http://singularity_api:9090/api
entrypoint: motion --experimentalSingularityStore --experimentalRemoteSingularityAPIUrl=http://singularity_api:9090
ports:
- 40080:40080
environment:
- MOTION_STORE_DIR=/usr/src/app/storage
volumes:
- motion-singularity-volume:/usr/src/app/storage
depends_on:
- singularity_api

volumes:
motion-singularity-volume:

0 comments on commit 18ee12b

Please sign in to comment.