This commit is contained in:
sanek 2024-12-11 22:09:32 +00:00
parent 1e9422f836
commit a5a70e3113
2 changed files with 3 additions and 3 deletions

4
app.py
View File

@ -5,12 +5,12 @@ try:
dbname="kolchin", dbname="kolchin",
user="kolchin", user="kolchin",
password="postgres", password="postgres",
host="pg", host="postgres_new",
port="5432" port="5432"
) )
except: except:
print('Can`t establish connection to database') print('Can`t establish connection to database')
#print(conn)
cursor = conn.cursor() cursor = conn.cursor()

View File

@ -53,7 +53,7 @@ volumes:
pg-data: pg-data:
networks: networks:
pg-net: pg-net:
#driver: bridge driver: bridge
#ipam: #ipam:
# config: # config:
# - subnet: 192.168.100.0/24 # - subnet: 192.168.100.0/24