소스 검색

fix: remove GPU reservation, change MySQL port to avoid collision, add dockerignore

lanfr144 1 주 전
부모
커밋
05df9bef41
3개의 변경된 파일7개의 추가작업 그리고 8개의 파일을 삭제
  1. 5 0
      .dockerignore
  2. 1 8
      docker-compose.yml
  3. 1 0
      rotate_passwords.py

+ 5 - 0
.dockerignore

@@ -0,0 +1,5 @@
+*.csv
+*.tar
+venv/
+.git/
+__pycache__/

+ 1 - 8
docker-compose.yml

@@ -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"
     volumes:
       - ollama_data:/root/.ollama
-    deploy:
-      resources:
-        reservations:
-          devices:
-            - driver: nvidia
-              count: 1
-              capabilities: [gpu]
     restart: always
 
   app:

+ 1 - 0
rotate_passwords.py

@@ -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'