diff --git a/docker-compose.yml b/docker-compose.yml index 36aa21a..fe4c5a6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,17 +1,17 @@ version: '3' services: -# synthwave: -# build: . -# ports: -# - "8080:8080" -# depends_on: -# - mongodb -# volumes: -# - ./data:/data -# - ./media:/media -# environment: -# - "DB_URI=mongodb://user:pass@mongodb:27017" -# - "DB=synthwrld" + synthwave: + build: . + ports: + - "8080:8080" + depends_on: + - mongodb + volumes: + - ./data:/data # Runtime data (optional) + - ./media:/media # Audio files + environment: + - "DB_URI=mongodb://user:pass@mongodb:27017" + - "DB=synthwrld" mongodb: image: mongo:latest @@ -22,4 +22,3 @@ services: MONGO_INITDB_ROOT_PASSWORD: pass volumes: - ./db:/data/db - diff --git a/src/extract_metadata.py b/src/extract_metadata.py index a34c60a..a408ac4 100644 --- a/src/extract_metadata.py +++ b/src/extract_metadata.py @@ -25,6 +25,7 @@ def print_metadata(file_path): except Exception as e: print(json.dumps({"error": str(e)})) + exit(1) if __name__ == "__main__": if len(sys.argv) != 2: