Compare commits
4 commits
43d6de1439
...
32510e95c4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32510e95c4 | ||
| c4bd424163 | |||
| 32d2fc1062 | |||
|
|
011f6332e4 |
4 changed files with 30 additions and 2 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
elixir 1.18.3-otp-27
|
elixir 1.18.3-otp-27
|
||||||
postgres 17.2
|
|
||||||
erlang 27.3
|
erlang 27.3
|
||||||
just 1.40.0
|
just 1.40.0
|
||||||
|
|
|
||||||
5
Justfile
5
Justfile
|
|
@ -1,4 +1,4 @@
|
||||||
run: install-dependencies migrate-database
|
run: install-dependencies start-database migrate-database
|
||||||
mix phx.server
|
mix phx.server
|
||||||
|
|
||||||
install-dependencies:
|
install-dependencies:
|
||||||
|
|
@ -10,6 +10,9 @@ migrate-database:
|
||||||
reset-database:
|
reset-database:
|
||||||
mix ash.reset
|
mix ash.reset
|
||||||
|
|
||||||
|
start-database:
|
||||||
|
docker compose up -d
|
||||||
|
|
||||||
ci-dev: lint audit test
|
ci-dev: lint audit test
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ config :mv, Mv.Repo,
|
||||||
username: "postgres",
|
username: "postgres",
|
||||||
password: "postgres",
|
password: "postgres",
|
||||||
hostname: "localhost",
|
hostname: "localhost",
|
||||||
|
port: 5000,
|
||||||
database: "mv_dev",
|
database: "mv_dev",
|
||||||
stacktrace: true,
|
stacktrace: true,
|
||||||
show_sensitive_data_on_connection_error: true,
|
show_sensitive_data_on_connection_error: true,
|
||||||
|
|
|
||||||
25
docker-compose.yml
Normal file
25
docker-compose.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
version: "3.5"
|
||||||
|
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: postgres:17.2-alpine
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
||||||
|
POSTGRES_DB: mv_dev
|
||||||
|
volumes:
|
||||||
|
- type: volume
|
||||||
|
source: postgres-data
|
||||||
|
target: /var/lib/postgresql/data
|
||||||
|
volume:
|
||||||
|
nocopy: true
|
||||||
|
ports:
|
||||||
|
- "5000:5432"
|
||||||
|
networks:
|
||||||
|
- local
|
||||||
|
|
||||||
|
networks:
|
||||||
|
local:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres-data:
|
||||||
Loading…
Add table
Add a link
Reference in a new issue