[day-00] base infra for the project
This commit is contained in:
commit
f02c0ff310
10
.editorconfig
Normal file
10
.editorconfig
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
|
||||||
|
[*.{ex,exs,yml}]
|
||||||
|
indent_size = 2
|
||||||
|
indent_style = space
|
2
.tool-versions
Normal file
2
.tool-versions
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
erlang 24.0.2
|
||||||
|
elixir 1.12.1-otp-24
|
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
version: '3.7'
|
||||||
|
services:
|
||||||
|
db:
|
||||||
|
image: 'postgres:13.3-alpine'
|
||||||
|
hostname: &db_host db
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: &db_user postgres
|
||||||
|
POSTGRES_PASSWORD: &db_pass postgres
|
||||||
|
POSTGRES_DB: &db_name postgres
|
||||||
|
volumes:
|
||||||
|
- './priv/docker/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql'
|
||||||
|
- 'db_data:/var/lib/postgresql/data'
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
db_data: {}
|
2
priv/docker/postgres/init.sql
Normal file
2
priv/docker/postgres/init.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
CREATE EXTENSION "uuid-ossp";
|
||||||
|
CREATE EXTENSION "pg_stat_statements";
|
Loading…
x
Reference in New Issue
Block a user