@@ -0,0 +1,5 @@
+*.csv
+*.tar
+venv/
+.git/
+__pycache__/
@@ -5,7 +5,7 @@ services:
build:
context: ./docker/mysql
ports:
- - "3306:3306"
+ - "3307:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./my.cnf:/etc/mysql/conf.d/custom_ai_app.cnf
@@ -26,13 +26,6 @@ services:
- "11434:11434"
- ollama_data:/root/.ollama
- deploy:
- resources:
- reservations:
- devices:
- - driver: nvidia
- count: 1
- capabilities: [gpu]
restart: always
app:
@@ -33,6 +33,7 @@ def main():
try:
conn = pymysql.connect(
host='127.0.0.1', # Assuming we run this from host to mapped port, or within a container network
+ port=3307,
user='root',
password='root_pass',
database='food_db'