diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..baad87b --- /dev/null +++ b/.env.example @@ -0,0 +1,9 @@ +POSTGRES_USER=postgres +POSTGRES_PASSWORD=postgres +POSTGRES_DB=pandektes +POSTGRES_PORT=5432 + +DATABASE_URL="postgresql://postgres:postgres@localhost:5432/pandektes?schema=public" + +PORT=3000 +NODE_ENV=development \ No newline at end of file diff --git a/.gitignore b/.gitignore index 4b56acf..e6a342a 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,6 @@ pids # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +/generated/prisma +src/schema.gql \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..ee08c4f --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,16 @@ +services: + postgres: + image: postgres:16-alpine + container_name: pandektes-postgres + restart: always + environment: + POSTGRES_USER: ${POSTGRES_USER:-postgres} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-yourPassword} + POSTGRES_DB: ${POSTGRES_DB:-pandektes} + ports: + - "${POSTGRES_PORT:-5432}:5432" + volumes: + - postgres_data:/var/lib/postgresql/data + +volumes: + postgres_data: \ No newline at end of file