mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
fix: stack auth compose and template
This commit is contained in:
parent
f97d54dbda
commit
3bac4c2a4a
@ -5,37 +5,36 @@ services:
|
||||
image: postgres:latest
|
||||
container_name: stack-auth-db
|
||||
environment:
|
||||
- POSTGRES_USER
|
||||
- POSTGRES_PASSWORD
|
||||
- POSTGRES_DB
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- stack-auth-db-data:/var/lib/postgresql/data
|
||||
|
||||
stack-auth-api:
|
||||
stack-auth:
|
||||
image: stackauth/server:latest
|
||||
container_name: stack-auth-api
|
||||
container_name: stack-auth
|
||||
environment:
|
||||
- POSTGRES_USER
|
||||
- POSTGRES_PASSWORD
|
||||
- POSTGRES_DB
|
||||
- NEXT_PUBLIC_STACK_API_URL
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
- NEXT_PUBLIC_STACK_API_URL=${NEXT_PUBLIC_STACK_API_URL}
|
||||
- NEXT_PUBLIC_STACK_DASHBOARD_URL=${NEXT_PUBLIC_STACK_DASHBOARD_URL}
|
||||
- STACK_DATABASE_CONNECTION_STRING=${STACK_DATABASE_CONNECTION_STRING}
|
||||
- STACK_DIRECT_DATABASE_CONNECTION_STRING=${STACK_DIRECT_DATABASE_CONNECTION_STRING}
|
||||
- STACK_SERVER_SECRET=${STACK_SERVER_SECRET}
|
||||
- STACK_SEED_INTERNAL_PROJECT_ALLOW_LOCALHOST=${STACK_SEED_INTERNAL_PROJECT_ALLOW_LOCALHOST}
|
||||
- STACK_SEED_INTERNAL_PROJECT_SIGN_UP_ENABLED=${STACK_SEED_INTERNAL_PROJECT_SIGN_UP_ENABLED}
|
||||
- STACK_RUN_MIGRATIONS=${STACK_RUN_MIGRATIONS}
|
||||
- STACK_RUN_SEED_SCRIPT=${STACK_RUN_SEED_SCRIPT}
|
||||
depends_on:
|
||||
- stack-auth-db
|
||||
ports:
|
||||
- "8102:8102"
|
||||
- "8101:8101"
|
||||
- "8102:8102"
|
||||
command: pnpm start:backend
|
||||
|
||||
stack-auth-dashboard:
|
||||
image: stackauth/dashboard:latest
|
||||
container_name: stack-auth-dashboard
|
||||
environment:
|
||||
- NEXT_PUBLIC_STACK_API_URL
|
||||
depends_on:
|
||||
- stack-auth-api
|
||||
ports:
|
||||
- "8101:8101"
|
||||
|
||||
volumes:
|
||||
stack-auth-db-data:
|
||||
|
@ -1,24 +1,35 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
postgres_password = "${password:32}"
|
||||
main_domain = "${domain}"
|
||||
postgres_password = "${password:32}"
|
||||
stack_auth_api_url = "${main_domain}:8102"
|
||||
stack_auth_dashboard_url = "${main_domain}:8101"
|
||||
stack_auth_postgres_host = "db"
|
||||
|
||||
[config.env]
|
||||
POSTGRES_USER="postgres"
|
||||
POSTGRES_PASSWORD="${postgres_password}"
|
||||
POSTGRES_DB="stackframe"
|
||||
NEXT_PUBLIC_STACK_API_URL="${stack_auth_api_url}"
|
||||
POSTGRES_USER = "postgres"
|
||||
POSTGRES_PASSWORD = "${postgres_password}"
|
||||
POSTGRES_DB = "stackframe"
|
||||
NEXT_PUBLIC_STACK_API_URL = "${stack_auth_api_url}"
|
||||
NEXT_PUBLIC_STACK_DASHBOARD_URL = "${stack_auth_dashboard_url}"
|
||||
|
||||
STACK_DATABASE_CONNECTION_STRING = "postgres://postgres:${postgres_password}@${stack_auth_postgres_host}:5432/stackframe"
|
||||
STACK_DIRECT_DATABASE_CONNECTION_STRING = "postgres://postgres:${postgres_password}@${stack_auth_postgres_host}:5432/stackframe"
|
||||
|
||||
STACK_SERVER_SECRET = "${password:64}"
|
||||
STACK_SEED_INTERNAL_PROJECT_ALLOW_LOCALHOST = true
|
||||
STACK_SEED_INTERNAL_PROJECT_SIGN_UP_ENABLED = true
|
||||
|
||||
STACK_RUN_MIGRATIONS = true
|
||||
STACK_RUN_SEED_SCRIPT = true
|
||||
|
||||
[[config.domains]]
|
||||
serviceName = "stack-auth-api"
|
||||
port = 8102
|
||||
host = "${stack_auth_api_url}"
|
||||
path = "/"
|
||||
path = "/"
|
||||
|
||||
[[config.domains]]
|
||||
serviceName = "stack-auth-dashboard"
|
||||
port = 8101
|
||||
host = "${stack_auth_dashboard_url}"
|
||||
path = "/"
|
||||
path = "/"
|
||||
|
Loading…
Reference in New Issue
Block a user