mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
feat: introduce docker-compose based setup
This commit is contained in:
parent
a0e24880c3
commit
f5a11061ac
75
devbox.json
75
devbox.json
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user