From 7ae943a5b5e680fdd27dfe789252252259c6ff8f Mon Sep 17 00:00:00 2001 From: counterweight Date: Sat, 14 Jun 2025 22:14:07 +0200 Subject: [PATCH] db --- .env.dist | 5 +++++ .gitignore | 1 + docker-compose.yml | 11 +++++++++++ 3 files changed, 17 insertions(+) create mode 100644 .env.dist create mode 100644 .gitignore create mode 100644 docker-compose.yml diff --git a/.env.dist b/.env.dist new file mode 100644 index 0000000..5632e56 --- /dev/null +++ b/.env.dist @@ -0,0 +1,5 @@ +POSTGRES_HOST=localhost +POSTGRES_PORT=5432 +POSTGRES_DB=rollup +POSTGRES_USER=rollup +POSTGRES_PASSWORD=rollup diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2eea525 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6195456 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.8' + +services: + postgres: + image: postgres:17 + environment: + POSTGRES_DB: ${POSTGRES_DB} + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + ports: + - "${POSTGRES_PORT}:${POSTGRES_PORT}" \ No newline at end of file