[day-00] base infra for the project

This commit is contained in:
Joao P Dubas 2021-06-22 01:50:29 +00:00
commit f02c0ff310
4 changed files with 30 additions and 0 deletions

10
.editorconfig Normal file
View 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
View File

@ -0,0 +1,2 @@
erlang 24.0.2
elixir 1.12.1-otp-24

16
docker-compose.yml Normal file
View 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: {}

View File

@ -0,0 +1,2 @@
CREATE EXTENSION "uuid-ossp";
CREATE EXTENSION "pg_stat_statements";