mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
Fix Postgres
This commit is contained in:
@@ -8,6 +8,8 @@ services:
|
|||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
NEXTAUTH_SECRET: ${nextauth_secret}
|
NEXTAUTH_SECRET: ${nextauth_secret}
|
||||||
DATABASE_URL: postgresql://postgres:${postgres_password}@blinko-postgres:5432/postgres
|
DATABASE_URL: postgresql://postgres:${postgres_password}@blinko-postgres:5432/postgres
|
||||||
|
NEXTAUTH_URL: ${nextauth_url}
|
||||||
|
NEXT_PUBLIC_BASE_URL: ${next_public_base_url}
|
||||||
depends_on:
|
depends_on:
|
||||||
blinko-postgres:
|
blinko-postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -16,6 +18,8 @@ services:
|
|||||||
options:
|
options:
|
||||||
max-size: "10m"
|
max-size: "10m"
|
||||||
max-file: "3"
|
max-file: "3"
|
||||||
|
ports:
|
||||||
|
- 1111:1111
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://blinko-website:1111/"]
|
test: ["CMD", "curl", "-f", "http://blinko-website:1111/"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ variables:
|
|||||||
main_domain: ${domain}
|
main_domain: ${domain}
|
||||||
postgres_password: ${password:16}
|
postgres_password: ${password:16}
|
||||||
nextauth_secret: ${password:32}
|
nextauth_secret: ${password:32}
|
||||||
|
nextauth_url: https://${main_domain}
|
||||||
|
next_public_base_url: https://${main_domain}
|
||||||
|
|
||||||
config:
|
config:
|
||||||
domains:
|
domains:
|
||||||
@@ -10,7 +12,9 @@ config:
|
|||||||
host: ${main_domain}
|
host: ${main_domain}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- NEXTAUTH_URL=https://${main_domain}
|
- nextauth_secret=${nextauth_secret}
|
||||||
- NEXT_PUBLIC_BASE_URL=https://${main_domain}
|
- postgres_password=${postgres_password}
|
||||||
|
- nextauth_url=${nextauth_url}
|
||||||
|
- next_public_base_url=${next_public_base_url}
|
||||||
|
|
||||||
mounts: []
|
mounts: []
|
||||||
|
|||||||
Reference in New Issue
Block a user