mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
fix: stack auth template.toml
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
db:
|
stack-auth-db:
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
container_name: stack-auth-db
|
container_name: stack-auth-db
|
||||||
environment:
|
environment:
|
||||||
@@ -13,7 +13,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- stack-auth-db-data:/var/lib/postgresql/data
|
- stack-auth-db-data:/var/lib/postgresql/data
|
||||||
|
|
||||||
api:
|
stack-auth-api:
|
||||||
image: stackauth/server:latest
|
image: stackauth/server:latest
|
||||||
container_name: stack-auth-api
|
container_name: stack-auth-api
|
||||||
environment:
|
environment:
|
||||||
@@ -22,18 +22,18 @@ services:
|
|||||||
- POSTGRES_DB
|
- POSTGRES_DB
|
||||||
- NEXT_PUBLIC_STACK_API_URL
|
- NEXT_PUBLIC_STACK_API_URL
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- stack-auth-db
|
||||||
ports:
|
ports:
|
||||||
- "8102:8102"
|
- "8102:8102"
|
||||||
command: pnpm start:backend
|
command: pnpm start:backend
|
||||||
|
|
||||||
dashboard:
|
stack-auth-dashboard:
|
||||||
image: stackauth/dashboard:latest
|
image: stackauth/dashboard:latest
|
||||||
container_name: stack-auth-dashboard
|
container_name: stack-auth-dashboard
|
||||||
environment:
|
environment:
|
||||||
- NEXT_PUBLIC_STACK_API_URL
|
- NEXT_PUBLIC_STACK_API_URL
|
||||||
depends_on:
|
depends_on:
|
||||||
- api
|
- stack-auth-api
|
||||||
ports:
|
ports:
|
||||||
- "8101:8101"
|
- "8101:8101"
|
||||||
|
|
||||||
|
|||||||
@@ -1,23 +1,15 @@
|
|||||||
[variables]
|
[variables]
|
||||||
main_domain = "${domain}"
|
main_domain = "${domain}"
|
||||||
postgres_password = "${password:32}"
|
postgres_password = "${password:32}"
|
||||||
stack_auth_api_url = "http://${main_domain}:8102"
|
stack_auth_api_url = "${main_domain}:8102"
|
||||||
stack_auth_dashboard_url = "http://${main_domain}:8101"
|
stack_auth_dashboard_url = "${main_domain}:8101"
|
||||||
stack_auth_postgres_host = "db"
|
stack_auth_postgres_host = "db"
|
||||||
|
|
||||||
[config]
|
[config.env]
|
||||||
|
POSTGRES_USER="postgres"
|
||||||
[[config.domains]]
|
POSTGRES_PASSWORD="${postgres_password}"
|
||||||
serviceName = "stack-auth-db"
|
POSTGRES_DB="stackframe"
|
||||||
port = 5432
|
NEXT_PUBLIC_STACK_API_URL="${stack_auth_api_url}"
|
||||||
host = "${stack_auth_postgres_host}"
|
|
||||||
path = "/"
|
|
||||||
|
|
||||||
env = [
|
|
||||||
"POSTGRES_USER=postgres",
|
|
||||||
"POSTGRES_PASSWORD=${postgres_password}",
|
|
||||||
"POSTGRES_DB=stackframe",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[config.domains]]
|
[[config.domains]]
|
||||||
serviceName = "stack-auth-api"
|
serviceName = "stack-auth-api"
|
||||||
@@ -25,19 +17,8 @@ port = 8102
|
|||||||
host = "${stack_auth_api_url}"
|
host = "${stack_auth_api_url}"
|
||||||
path = "/"
|
path = "/"
|
||||||
|
|
||||||
env = [
|
|
||||||
"POSTGRES_USER=postgres",
|
|
||||||
"POSTGRES_PASSWORD=${postgres_password}",
|
|
||||||
"POSTGRES_DB=stackframe",
|
|
||||||
"NEXT_PUBLIC_STACK_API_URL=${stack_auth_api_url}",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[config.domains]]
|
[[config.domains]]
|
||||||
serviceName = "stack-auth-dashboard"
|
serviceName = "stack-auth-dashboard"
|
||||||
port = 8101
|
port = 8101
|
||||||
host = "${stack_auth_dashboard_url}"
|
host = "${stack_auth_dashboard_url}"
|
||||||
path = "/"
|
path = "/"
|
||||||
|
|
||||||
env = [
|
|
||||||
"NEXT_PUBLIC_STACK_API_URL=${stack_auth_api_url}",
|
|
||||||
]
|
|
||||||
Reference in New Issue
Block a user