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:
2026-02-15 12:25:04 +01:00
co-authored by Claude Opus 4.6
parent 139c028607
commit 4984c1b207
4 changed files with 6 additions and 16 deletions
+1
View File
@@ -20,3 +20,4 @@ resources/public/css/output.css
.calva/output-window/ .calva/output-window/
.lsp/.cache/ .lsp/.cache/
.token .token
.env
+3
View File
@@ -1,3 +1,6 @@
include .env
export
clean: clean:
rm -rf target rm -rf target
-14
View File
@@ -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:
+2 -2
View File
@@ -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