diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..1558521b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,18 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Shell scripts should always use LF +*.sh text eol=lf +init.sh text eol=lf + +# Docker files should use LF +Dockerfile text eol=lf +*.dockerfile text eol=lf +docker-compose*.yml text eol=lf + +# YAML files +*.yaml text eol=lf +*.yml text eol=lf + +# SQL files +*.sql text eol=lf diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index f154094e..6e5fa7de 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -4,7 +4,6 @@ You can install PostgreSQL local https://www.postgresql.org/download/ or use Docker (see `docker-compose.yml`): ``` -version: "3.2" services: api: build: @@ -17,7 +16,7 @@ services: restart: unless-stopped postgres: - image: postgres + image: postgres:16 environment: POSTGRES_USER: codex POSTGRES_DB: notes diff --git a/docker-compose.yml b/docker-compose.yml index c741bc60..6ee513e1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.2' - services: api: build: @@ -12,7 +10,7 @@ services: restart: unless-stopped postgres: - image: postgres + image: postgres:16 environment: POSTGRES_USER: codex POSTGRES_DB: notes diff --git a/init.sh b/init.sh index e39569ff..161f48eb 100644 --- a/init.sh +++ b/init.sh @@ -1,3 +1,3 @@ #!/bin/sh set -e -node dist/index.js \ No newline at end of file +node dist/index.js