From 50b114b33ea0887fb01d462ca252b79478fc71e7 Mon Sep 17 00:00:00 2001 From: craisin Date: Thu, 27 Nov 2025 16:03:07 -0800 Subject: [PATCH] initial commit --- .gitignore | 1 + app.py | 7 +++++++ compose.yml | 12 ++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100644 app.py create mode 100644 compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b694934 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.venv \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..812c9f7 --- /dev/null +++ b/app.py @@ -0,0 +1,7 @@ +import psycopg2 as sql +sql.connect( + dbname="database", + user="user", + password="password", + host="localhost" +) \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..cadaf86 --- /dev/null +++ b/compose.yml @@ -0,0 +1,12 @@ +services: + database: + container_name: database + image: postgres:latest + environment: + POSTGRES_USER: user + POSTGRES_PASSWORD: password + POSTGRES_DB: database + ports: + - "5432:5432" + volumes: + - ./data:/var/lib/postgresql \ No newline at end of file