mirror of
https://github.com/Dokploy/templates.git
synced 2026-06-15 20:25:24 +02:00
Add Authorizer blueprint with Docker Compose and configuration files
- Introduced Docker Compose setup for Authorizer service, including environment variables and volume configuration. - Added logo for Authorizer. - Created template.toml for Authorizer with default variables for configuration.
This commit is contained in:
40
blueprints/authorizer/docker-compose.yml
Normal file
40
blueprints/authorizer/docker-compose.yml
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
authorizer:
|
||||||
|
image: lakhansamani/authorizer:1.4.4
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- 8080
|
||||||
|
environment:
|
||||||
|
- DATABASE_TYPE=postgres
|
||||||
|
- DATABASE_URL=postgres://postgres:${DB_PASSWORD}@authorizer-db:5432/authorizer?sslmode=disable
|
||||||
|
- REDIS_URL=redis://authorizer-redis:6379
|
||||||
|
- ADMIN_SECRET=${ADMIN_SECRET}
|
||||||
|
- JWT_SECRET=${JWT_SECRET}
|
||||||
|
- COOKIE_NAME=authorizer
|
||||||
|
- ACCESS_TOKEN_EXPIRY_TIME=86400
|
||||||
|
- REFRESH_TOKEN_EXPIRY_TIME=86400
|
||||||
|
- DISABLE_PLAYGROUND=true
|
||||||
|
depends_on:
|
||||||
|
- authorizer-db
|
||||||
|
- authorizer-redis
|
||||||
|
|
||||||
|
authorizer-db:
|
||||||
|
image: postgres:15-alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=postgres
|
||||||
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||||
|
- POSTGRES_DB=authorizer
|
||||||
|
volumes:
|
||||||
|
- db_data:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
authorizer-redis:
|
||||||
|
image: redis:7-alpine
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- redis_data:/data
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db_data: {}
|
||||||
|
redis_data: {}
|
||||||
BIN
blueprints/authorizer/logo.png
Normal file
BIN
blueprints/authorizer/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
16
blueprints/authorizer/template.toml
Normal file
16
blueprints/authorizer/template.toml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[variables]
|
||||||
|
main_domain = "${domain}"
|
||||||
|
db_password = "${password:16}"
|
||||||
|
admin_secret = "${password:32}"
|
||||||
|
jwt_secret = "${password:32}"
|
||||||
|
|
||||||
|
[config]
|
||||||
|
[[config.domains]]
|
||||||
|
serviceName = "authorizer"
|
||||||
|
port = 8080
|
||||||
|
host = "${main_domain}"
|
||||||
|
|
||||||
|
[config.env]
|
||||||
|
DB_PASSWORD = "${db_password}"
|
||||||
|
ADMIN_SECRET = "${admin_secret}"
|
||||||
|
JWT_SECRET = "${jwt_secret}"
|
||||||
Reference in New Issue
Block a user