Skip to content

Commit

Permalink
feat: add docker compose for RPs (#404)
Browse files Browse the repository at this point in the history
* feat: add docker compose for RPs

* fix: typo

* fix: PR feedback
  • Loading branch information
walkah authored Oct 15, 2024
1 parent 7f8de8e commit 5b6e598
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This is a docker-compose file for use by Resource Providers
services:
ipfs:
image: ipfs/kubo:v0.30.0
container_name: ipfs
restart: unless-stopped
ports:
- 4001:4001
- 127.0.0.1:5001:5001
- 127.0.0.1:8080:8080
volumes:
- ipfs-data:/data/ipfs
resource-provider:
image: ghcr.io/lilypad-tech/resource-provider:latest
container_name: resource-provider
restart: unless-stopped
depends_on:
- ipfs
build:
context: ..
dockerfile: ./docker/resource-provider/Dockerfile
args:
- COMPUTE_MODE=gpu
volumes:
- bacalhau-data:/tmp/lilypad/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WEB3_PRIVATE_KEY
- WEB3_RPC_URL
- IPFS_CONNECT=/dns4/ipfs/tcp/5001
watchtower:
image: containrrr/watchtower
container_name: watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
ipfs-data:
bacalhau-data:

0 comments on commit 5b6e598

Please sign in to comment.