Compare commits

..
Author SHA1 Message Date
Mauricio SiuandClaude Fable 5 3ddbdde081 feat: add SpacetimeDB template
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 13:30:17 -06:00
8 changed files with 85 additions and 16 deletions
+1 -8
View File
@@ -1,6 +1,6 @@
services:
evolution-api:
image: evoapicloud/evolution-api:v2.3.7
image: evoapicloud/evolution-api:latest
restart: always
volumes:
- evolution-instances:/evolution/instances
@@ -29,13 +29,6 @@ services:
- CACHE_REDIS_URI=${CACHE_REDIS_URI}
- CACHE_REDIS_PREFIX_KEY=${CACHE_REDIS_PREFIX_KEY}
- CACHE_REDIS_SAVE_INSTANCES=${CACHE_REDIS_SAVE_INSTANCES}
- TYPEBOT_ENABLED=${TYPEBOT_ENABLED}
- TYPEBOT_API_VERSION=${TYPEBOT_API_VERSION}
- CHATWOOT_ENABLED=${CHATWOOT_ENABLED}
- OPENAI_ENABLED=${OPENAI_ENABLED}
- DIFY_ENABLED=${DIFY_ENABLED}
- N8N_ENABLED=${N8N_ENABLED}
- EVOAI_ENABLED=${EVOAI_ENABLED}
evolution-postgres:
image: postgres:16-alpine
+1 -1
View File
@@ -1,7 +1,7 @@
{
"id": "evolutionapi",
"name": "Evolution API",
"version": "v2.3.7",
"version": "v2.1.2",
"description": "Evolution API is a robust platform dedicated to empowering small businesses with limited resources, going beyond a simple messaging solution via WhatsApp.",
"logo": "evolutionapi.png",
"links": {
-7
View File
@@ -31,13 +31,6 @@ env = [
"CACHE_REDIS_URI=redis://evolution-redis:6379",
"CACHE_REDIS_PREFIX_KEY=evolution",
"CACHE_REDIS_SAVE_INSTANCES=true",
"TYPEBOT_ENABLED=true",
"TYPEBOT_API_VERSION=latest",
"CHATWOOT_ENABLED=true",
"OPENAI_ENABLED=true",
"DIFY_ENABLED=true",
"N8N_ENABLED=true",
"EVOAI_ENABLED=true",
]
mounts = []
+13
View File
@@ -0,0 +1,13 @@
version: "3.8"
services:
spacetimedb:
image: clockworklabs/spacetime:v2.6.1
restart: unless-stopped
command: start
ports:
- 3000
volumes:
- spacetimedb-data:/home/spacetime
volumes:
spacetimedb-data: {}
+45
View File
@@ -0,0 +1,45 @@
# SpacetimeDB
SpacetimeDB is a database and server runtime in one: your clients connect directly to the database and your application logic runs inside it as WebAssembly modules. There is no web UI — the domain assigned to this service exposes the SpacetimeDB HTTP/WebSocket API (so opening `/` in a browser returns a plain 404; that is expected).
## Verify the server is running
```bash
curl -i https://your-domain.com/v1/ping
```
A `200 OK` response means the server is up.
## Connect with the SpacetimeDB CLI
1. Install the CLI on your local machine:
```bash
curl -sSf https://install.spacetimedb.com | sh
```
2. Register your Dokploy instance as a server and make it the default:
```bash
spacetime server add --url https://your-domain.com dokploy --default
```
3. Log in (or create an anonymous local identity) and publish a module:
```bash
spacetime login
spacetime publish --server dokploy my-database
```
4. Check connectivity at any time:
```bash
spacetime server ping dokploy
```
From your game or app, connect with any SpacetimeDB client SDK (Rust, C#, TypeScript) using `https://your-domain.com` as the host URI. See the [getting started guide](https://spacetimedb.com/docs/getting-started) for a full walkthrough.
## Notes
- All server state (databases, logs and the JWT signing keys used for identities) is persisted in the `spacetimedb-data` volume, so identities survive restarts and upgrades.
- Client connections use WebSockets over the same domain; no extra configuration is needed.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

+17
View File
@@ -0,0 +1,17 @@
{
"id": "spacetimedb",
"name": "SpacetimeDB",
"version": "v2.6.1",
"description": "SpacetimeDB is a relational database with a built-in server runtime. Clients connect directly to the database and run server-side logic (modules) inside it, making it ideal for real-time multiplayer games, chat and collaborative applications without a separate backend.",
"logo": "logo.png",
"links": {
"github": "https://github.com/clockworklabs/SpacetimeDB",
"website": "https://spacetimedb.com/",
"docs": "https://spacetimedb.com/docs"
},
"tags": [
"database",
"realtime",
"backend"
]
}
+8
View File
@@ -0,0 +1,8 @@
[variables]
main_domain = "${domain}"
[config]
[[config.domains]]
serviceName = "spacetimedb"
port = 3000
host = "${main_domain}"