Refactor Blinko blueprint configuration and environment handling (#255)

* Refactor Blinko blueprint configuration and environment handling

* Standardize tag formatting in meta.json

* FIX-Validating meta.json against blueprint folders and logos

---------

Co-authored-by: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com>
This commit is contained in:
Jainil Prajapati 🪐
2025-08-02 11:46:54 +05:30
committed by GitHub
parent a2d1f929fd
commit 6713733ec1
3 changed files with 17 additions and 46 deletions

View File

@@ -1,15 +1,13 @@
version: "3.8"
services:
blinko-website:
image: blinkospace/blinko:latest
container_name: blinko-website
environment:
NODE_ENV: production
NEXTAUTH_SECRET: ${nextauth_secret}
DATABASE_URL: postgresql://postgres:${postgres_password}@blinko-postgres:5432/postgres
NEXTAUTH_URL: ${nextauth_url}
NEXT_PUBLIC_BASE_URL: ${next_public_base_url}
# API Key for NextAuth
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
DATABASE_URL: ${DATABASE_URL}
NEXTAUTH_URL: ${NEXTAUTH_URL}
NEXT_PUBLIC_BASE_URL: ${NEXT_PUBLIC_BASE_URL}
depends_on:
blinko-postgres:
condition: service_healthy
@@ -19,22 +17,15 @@ services:
max-size: "10m"
max-file: "3"
ports:
- 1111:1111
healthcheck:
test: ["CMD", "curl", "-f", "http://blinko-website:1111/"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
- 1111
blinko-postgres:
image: postgres:14
container_name: blinko-postgres
restart: always
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${postgres_password}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
TZ: Asia/Shanghai
volumes:
- blinko-db:/var/lib/postgresql/data

View File

@@ -1,20 +1,20 @@
[variables]
main_domain = "${domain}"
postgres_password = "${password:16}"
postgres_password = "${password:32}"
nextauth_secret = "${password:32}"
database_url = "postgresql://postgres:${postgres_password}@blinko-postgres:5432/postgres"
nextauth_url = "http://${main_domain}"
next_public_base_url = "http://${main_domain}"
[config]
env = [
"nextauth_secret=${nextauth_secret}",
"postgres_password=${postgres_password}",
"nextauth_url=${nextauth_url}",
"next_public_base_url=${next_public_base_url}",
]
mounts = []
[[config.domains]]
serviceName = "blinko-website"
port = 1_111
port = 1111
host = "${main_domain}"
[config.env]
NEXTAUTH_SECRET = "${nextauth_secret}"
POSTGRES_PASSWORD = "${postgres_password}"
DATABASE_URL = "${database_url}"
NEXTAUTH_URL = "${nextauth_url}"
NEXT_PUBLIC_BASE_URL = "${next_public_base_url}"

View File

@@ -1,20 +0,0 @@
variables:
main_domain: ${domain}
postgres_password: ${password:16}
nextauth_secret: ${password:32}
nextauth_url: http://${main_domain}
next_public_base_url: http://${main_domain}
config:
domains:
- serviceName: blinko-website
port: 1111
host: ${main_domain}
env:
- nextauth_secret=${nextauth_secret}
- postgres_password=${postgres_password}
- nextauth_url=${nextauth_url}
- next_public_base_url=${next_public_base_url}
mounts: []