feat: introduce docker-compose based setup

This commit is contained in:
Prad Nukala 2024-10-03 20:47:21 -04:00
parent a0e24880c3
commit f5a11061ac
2 changed files with 59 additions and 51 deletions

View File

@ -30,22 +30,65 @@
},
"shell": {
"scripts": {
"dev": ["air"],
"build:docker": ["make local-image"],
"build:hway": ["make nebula", "make hway"],
"build:nebula": ["make nebula"],
"build:sonrd": ["make motr", "make build"],
"build": ["make motr", "make build", "make hway"],
"gen:proto": ["make proto-gen"],
"gen:pkl": ["make pkl"],
"gen:templ": ["make templ"],
"start:hway": ["make templ", "make hway", "make start-hway"],
"start:testnet": ["make templ", "make install", "make sh-testnet"],
"start": ["process-compose up -d"],
"stop": ["process-compose down"],
"test:e2e": ["make templ", "make test-e2e"],
"test:unit": ["make templ", "make test-unit"],
"test": ["make templ", "make test"]
"dev": [
"air"
],
"build:docker": [
"make local-image"
],
"build:hway": [
"make nebula",
"make hway"
],
"build:nebula": [
"make nebula"
],
"build:sonrd": [
"make motr",
"make build"
],
"build": [
"make motr",
"make build",
"make hway"
],
"gen:proto": [
"make proto-gen"
],
"gen:pkl": [
"make pkl"
],
"gen:templ": [
"make templ"
],
"start:hway": [
"make templ",
"make hway",
"make start-hway"
],
"start:testnet": [
"make templ",
"make install",
"make sh-testnet"
],
"start": [
"process-compose up -d"
],
"stop": [
"process-compose down"
],
"test:e2e": [
"make templ",
"make test-e2e"
],
"test:unit": [
"make templ",
"make test-unit"
],
"test": [
"make templ",
"make test"
]
}
}
}

View File

@ -1,35 +0,0 @@
version: "0.6"
processes:
ipfs:
namespace: testnet
command: "sh scripts/setup_ipfs.sh"
background: true
availability:
restart: on_failure
max_restarts: 0
sonr:
namespace: testnet
command: "devbox run start:testnet"
restart: on_failure
max_restarts: 1
depends:
- ipfs
hway:
namespace: testnet
command: "devbox run start:hway"
restart: on_failure
max_restarts: 1
depends:
- ipfs
- sonr
tunnel:
namespace: public
command: "cloudflared tunnel run --token $TUNNEL_TOKEN"
restart: on_failure
max_restarts: 1
depends:
- caddy