Replace local Docker PostgreSQL with external DB via .env
Remove docker-compose.yml and use JDBC_URL from .env for all profiles. Makefile now exports .env variables automatically. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -20,3 +20,4 @@ resources/public/css/output.css
|
|||||||
.calva/output-window/
|
.calva/output-window/
|
||||||
.lsp/.cache/
|
.lsp/.cache/
|
||||||
.token
|
.token
|
||||||
|
.env
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
services:
|
|
||||||
postgres:
|
|
||||||
image: postgres:16-alpine
|
|
||||||
environment:
|
|
||||||
POSTGRES_DB: elprice
|
|
||||||
POSTGRES_USER: elprice
|
|
||||||
POSTGRES_PASSWORD: elprice
|
|
||||||
ports:
|
|
||||||
- "5432:5432"
|
|
||||||
volumes:
|
|
||||||
- pgdata:/var/lib/postgresql/data
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
pgdata:
|
|
||||||
@@ -47,8 +47,8 @@
|
|||||||
:env #ig/ref :system/env}
|
:env #ig/ref :system/env}
|
||||||
|
|
||||||
:db.sql/connection
|
:db.sql/connection
|
||||||
#profile {:dev {:jdbc-url "jdbc:postgresql://localhost:5432/elprice?user=elprice&password=elprice"}
|
#profile {:dev {:jdbc-url #env JDBC_URL}
|
||||||
:test {:jdbc-url "jdbc:postgresql://localhost:5432/elprice?user=elprice&password=elprice"}
|
:test {:jdbc-url #env JDBC_URL}
|
||||||
:prod {:jdbc-url #env JDBC_URL
|
:prod {:jdbc-url #env JDBC_URL
|
||||||
:init-size 1
|
:init-size 1
|
||||||
:min-idle 1
|
:min-idle 1
|
||||||
|
|||||||
Reference in New Issue
Block a user