Created
November 29, 2023 19:19
-
-
Save frrist/d3cf8a5d3891c4a2ec4f0b346bda23cb to your computer and use it in GitHub Desktop.
Bacalhau + IPFS Docker Compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.8' | |
services: | |
ipfs_host: | |
image: ipfs/kubo:latest | |
container_name: ipfs_host | |
networks: | |
- bacalhau_network | |
ports: | |
- "4001:4001" | |
- "4001:4001/udp" | |
- "127.0.0.1:8080:8080" | |
- "127.0.0.1:5001:5001" | |
healthcheck: | |
test: ["CMD-SHELL", "nc -z localhost 5001 || exit 1"] | |
interval: 10s | |
timeout: 5s | |
retries: 5 | |
bacalhau: | |
image: ghcr.io/bacalhau-project/bacalhau:latest | |
command: serve --ipfs-connect /dns4/ipfs_host/tcp/5001 --private-internal-ipfs=false --node-type requester,compute | |
user: root | |
networks: | |
- bacalhau_network | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- /tmp:/tmp | |
environment: | |
- BACALHAU_DIR=/tmp/bacalhau_repo | |
ports: | |
- "127.0.0.1:1234:1234" | |
- "127.0.0.1:1235:1235" | |
- "127.0.0.1:1235:1235/udp" | |
depends_on: | |
ipfs_host: | |
condition: service_healthy | |
networks: | |
bacalhau_network: | |
driver: bridge | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment