mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
feat: add first stack-auth test
This commit is contained in:
41
blueprints/stack-auth/docker-compose.yml
Normal file
41
blueprints/stack-auth/docker-compose.yml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres:latest
|
||||||
|
container_name: stack-auth-db
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER
|
||||||
|
- POSTGRES_PASSWORD
|
||||||
|
- POSTGRES_DB
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
volumes:
|
||||||
|
- stack-auth-db-data:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
api:
|
||||||
|
image: stackauth/server:latest
|
||||||
|
container_name: stack-auth-api
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER
|
||||||
|
- POSTGRES_PASSWORD
|
||||||
|
- POSTGRES_DB
|
||||||
|
- NEXT_PUBLIC_STACK_API_URL
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
ports:
|
||||||
|
- "8102:8102"
|
||||||
|
command: pnpm start:backend
|
||||||
|
|
||||||
|
dashboard:
|
||||||
|
image: stackauth/dashboard:latest
|
||||||
|
container_name: stack-auth-dashboard
|
||||||
|
environment:
|
||||||
|
- NEXT_PUBLIC_STACK_API_URL
|
||||||
|
depends_on:
|
||||||
|
- api
|
||||||
|
ports:
|
||||||
|
- "8101:8101"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
stack-auth-db-data:
|
||||||
BIN
blueprints/stack-auth/stack-auth.png
Normal file
BIN
blueprints/stack-auth/stack-auth.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
43
blueprints/stack-auth/template.toml
Normal file
43
blueprints/stack-auth/template.toml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
[variables]
|
||||||
|
main_domain = "${domain}"
|
||||||
|
postgres_password = "${password:32}"
|
||||||
|
stack_auth_api_url = "http://${main_domain}:8102"
|
||||||
|
stack_auth_dashboard_url = "http://${main_domain}:8101"
|
||||||
|
stack_auth_postgres_host = "db"
|
||||||
|
|
||||||
|
[config]
|
||||||
|
|
||||||
|
[[config.domains]]
|
||||||
|
serviceName = "stack-auth-db"
|
||||||
|
port = 5432
|
||||||
|
host = "${stack_auth_postgres_host}"
|
||||||
|
path = "/"
|
||||||
|
|
||||||
|
env = [
|
||||||
|
"POSTGRES_USER=postgres",
|
||||||
|
"POSTGRES_PASSWORD=${postgres_password}",
|
||||||
|
"POSTGRES_DB=stackframe",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[config.domains]]
|
||||||
|
serviceName = "stack-auth-api"
|
||||||
|
port = 8102
|
||||||
|
host = "${stack_auth_api_url}"
|
||||||
|
path = "/"
|
||||||
|
|
||||||
|
env = [
|
||||||
|
"POSTGRES_USER=postgres",
|
||||||
|
"POSTGRES_PASSWORD=${postgres_password}",
|
||||||
|
"POSTGRES_DB=stackframe",
|
||||||
|
"NEXT_PUBLIC_STACK_API_URL=${stack_auth_api_url}",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[config.domains]]
|
||||||
|
serviceName = "stack-auth-dashboard"
|
||||||
|
port = 8101
|
||||||
|
host = "${stack_auth_dashboard_url}"
|
||||||
|
path = "/"
|
||||||
|
|
||||||
|
env = [
|
||||||
|
"NEXT_PUBLIC_STACK_API_URL=${stack_auth_api_url}",
|
||||||
|
]
|
||||||
15
meta.json
15
meta.json
@@ -242,6 +242,21 @@
|
|||||||
"redis"
|
"redis"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "stack-auth",
|
||||||
|
"name": "Stack Auth",
|
||||||
|
"version": "latest",
|
||||||
|
"description": "Uptime Kuma is a free and open source monitoring tool that allows you to monitor your websites and applications.",
|
||||||
|
"logo": "stack-auth.png",
|
||||||
|
"links": {
|
||||||
|
"github": "https://github.com/louislam/uptime-kuma",
|
||||||
|
"website": "https://uptime.kuma.pet/",
|
||||||
|
"docs": "https://github.com/louislam/uptime-kuma/wiki"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"monitoring"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "uptime-kuma",
|
"id": "uptime-kuma",
|
||||||
"name": "Uptime Kuma",
|
"name": "Uptime Kuma",
|
||||||
|
|||||||
Reference in New Issue
Block a user