From 8a214b00f9bf17576861a87cbe33e2d1746f87b1 Mon Sep 17 00:00:00 2001 From: DrMxrcy Date: Fri, 28 Mar 2025 13:58:28 -0400 Subject: [PATCH] Fix Postgres --- blueprints/blinko/docker-compose.yml | 4 ++++ blueprints/blinko/template.yml | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/blueprints/blinko/docker-compose.yml b/blueprints/blinko/docker-compose.yml index 79305f2..01d46fd 100644 --- a/blueprints/blinko/docker-compose.yml +++ b/blueprints/blinko/docker-compose.yml @@ -8,6 +8,8 @@ services: 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} depends_on: blinko-postgres: condition: service_healthy @@ -16,6 +18,8 @@ services: options: max-size: "10m" max-file: "3" + ports: + - 1111:1111 healthcheck: test: ["CMD", "curl", "-f", "http://blinko-website:1111/"] interval: 30s diff --git a/blueprints/blinko/template.yml b/blueprints/blinko/template.yml index 5a9a81c..60938c1 100644 --- a/blueprints/blinko/template.yml +++ b/blueprints/blinko/template.yml @@ -2,6 +2,8 @@ variables: main_domain: ${domain} postgres_password: ${password:16} nextauth_secret: ${password:32} + nextauth_url: https://${main_domain} + next_public_base_url: https://${main_domain} config: domains: @@ -10,7 +12,9 @@ config: host: ${main_domain} env: - - NEXTAUTH_URL=https://${main_domain} - - NEXT_PUBLIC_BASE_URL=https://${main_domain} + - nextauth_secret=${nextauth_secret} + - postgres_password=${postgres_password} + - nextauth_url=${nextauth_url} + - next_public_base_url=${next_public_base_url} mounts: []