mirror of
https://github.com/Dokploy/templates.git
synced 2026-11-11 13:38:07 -06:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ddbdde081 |
@@ -1,24 +1,65 @@
|
||||
services:
|
||||
gitlab:
|
||||
image: gitlab/gitlab-ce:19.1.2-ce.0
|
||||
image: gitlab/gitlab-ce:latest
|
||||
restart: unless-stopped
|
||||
shm_size: "256m"
|
||||
hostname: gitlab.example.com
|
||||
environment:
|
||||
GITLAB_OMNIBUS_CONFIG: |
|
||||
external_url 'http://${GITLAB_HOST}'
|
||||
gitlab_rails['gitlab_ssh_host'] = '${GITLAB_HOST}'
|
||||
gitlab_rails['gitlab_shell_ssh_port'] = 2224
|
||||
gitlab_rails['db_adapter'] = 'postgresql'
|
||||
gitlab_rails['db_host'] = 'postgresql'
|
||||
gitlab_rails['db_port'] = '5432'
|
||||
gitlab_rails['db_database'] = '${POSTGRES_DB}'
|
||||
gitlab_rails['db_username'] = '${POSTGRES_USER}'
|
||||
gitlab_rails['db_password'] = '${POSTGRES_PASSWORD}'
|
||||
# Redis config for external TCP connection
|
||||
gitlab_rails['redis_url'] = 'redis://redis:6379/0'
|
||||
gitlab_rails['redis_host'] = 'redis'
|
||||
gitlab_rails['redis_port'] = 6379
|
||||
gitlab_rails['redis_socket'] = nil
|
||||
gitlab_rails['gitlab_email_enabled'] = false
|
||||
gitlab_rails['gitlab_default_can_create_group'] = true
|
||||
gitlab_rails['gitlab_username_changing_enabled'] = false
|
||||
unicorn['worker_processes'] = 2
|
||||
unicorn['worker_timeout'] = 60
|
||||
postgresql['enable'] = false
|
||||
redis['enable'] = false
|
||||
nginx['enable'] = true
|
||||
nginx['listen_port'] = 80
|
||||
nginx['listen_https'] = false
|
||||
gitlab_rails['initial_root_password'] = '${GITLAB_ROOT_PASSWORD}'
|
||||
gitlab_rails['gitlab_email_enabled'] = false
|
||||
puma['worker_processes'] = 0
|
||||
sidekiq['concurrency'] = 10
|
||||
prometheus_monitoring['enable'] = false
|
||||
ports:
|
||||
- "80"
|
||||
- "2224"
|
||||
volumes:
|
||||
- gitlab_config:/etc/gitlab
|
||||
- gitlab_logs:/var/log/gitlab
|
||||
- gitlab_data:/var/opt/gitlab
|
||||
depends_on:
|
||||
- postgresql
|
||||
- redis
|
||||
|
||||
postgresql:
|
||||
image: postgres:16-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
volumes:
|
||||
- postgresql_data:/var/lib/postgresql/data
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
|
||||
volumes:
|
||||
gitlab_config:
|
||||
gitlab_logs:
|
||||
gitlab_data:
|
||||
postgresql_data:
|
||||
redis_data:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "gitlab-ce",
|
||||
"name": "GitLab CE",
|
||||
"version": "19.1.2",
|
||||
"version": "latest",
|
||||
"description": "GitLab Community Edition is a free and open source platform for managing Git repositories, CI/CD pipelines, and project management.",
|
||||
"logo": "gitlab-ce.svg",
|
||||
"links": {
|
||||
|
||||
@@ -1,11 +1,15 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
gitlab_root_password = "${password:32}"
|
||||
postgres_db = "gitlab"
|
||||
postgres_user = "gitlab"
|
||||
postgres_password = "${password:32}"
|
||||
|
||||
[config]
|
||||
env = [
|
||||
"GITLAB_HOST=${main_domain}",
|
||||
"GITLAB_ROOT_PASSWORD=${gitlab_root_password}",
|
||||
"POSTGRES_DB=${postgres_db}",
|
||||
"POSTGRES_USER=${postgres_user}",
|
||||
"POSTGRES_PASSWORD=${postgres_password}",
|
||||
]
|
||||
|
||||
[[config.domains]]
|
||||
|
||||
@@ -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: {}
|
||||
@@ -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 |
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
|
||||
[config]
|
||||
[[config.domains]]
|
||||
serviceName = "spacetimedb"
|
||||
port = 3000
|
||||
host = "${main_domain}"
|
||||
Reference in New Issue
Block a user