diff --git a/.gitignore b/.gitignore index aaa9123..79f220d 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ resources/public/css/output.css .calva/output-window/ .lsp/.cache/ .token +.env diff --git a/Makefile b/Makefile index 7bde3a1..9440b8c 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +include .env +export + clean: rm -rf target diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 94c9542..0000000 --- a/docker-compose.yml +++ /dev/null @@ -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: diff --git a/resources/system.edn b/resources/system.edn index 9ba0563..622ef0d 100644 --- a/resources/system.edn +++ b/resources/system.edn @@ -47,8 +47,8 @@ :env #ig/ref :system/env} :db.sql/connection - #profile {:dev {:jdbc-url "jdbc:postgresql://localhost:5432/elprice?user=elprice&password=elprice"} - :test {:jdbc-url "jdbc:postgresql://localhost:5432/elprice?user=elprice&password=elprice"} + #profile {:dev {:jdbc-url #env JDBC_URL} + :test {:jdbc-url #env JDBC_URL} :prod {:jdbc-url #env JDBC_URL :init-size 1 :min-idle 1