initial commit
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.venv
|
||||||
7
app.py
Normal file
7
app.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import psycopg2 as sql
|
||||||
|
sql.connect(
|
||||||
|
dbname="database",
|
||||||
|
user="user",
|
||||||
|
password="password",
|
||||||
|
host="localhost"
|
||||||
|
)
|
||||||
12
compose.yml
Normal file
12
compose.yml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user