commit 50b114b33ea0887fb01d462ca252b79478fc71e7 Author: craisin Date: Thu Nov 27 16:03:07 2025 -0800 initial commit 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