This commit is contained in:
JMARyA 2024-10-02 13:11:30 +02:00
parent b00424471c
commit 02b9e34258
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 13 additions and 13 deletions

View file

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

View file

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