Fix worker container to use main.py instead of worker.py

This commit is contained in:
yznahmad 2025-06-20 04:02:32 +03:00
parent 509dd365e1
commit 255a3cc41d
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
DB_URI=mongodb+srv://xxx
ADMIN_USERNAME=xxx
ADMIN_PASSWORD=xxx
MONGO_INITDB_ROOT_USERNAME=your_username
MONGO_INITDB_ROOT_PASSWORD=your_secure_password
MONGO_INITDB_DATABASE=Infinity
DB_URI=mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongodb:27017/Infinity?authSource=admin
ADMIN_USERNAME=admin
ADMIN_PASSWORD=your_secure_admin_password

View File

@ -13,4 +13,4 @@ COPY helpers/ .
ENV PYTHONUNBUFFERED=1
# Command to run the create_account script
CMD ["python", "create_account.py"]
CMD ["python", "create_account.py", "-u", "${ADMIN_USERNAME}", "-p", "${ADMIN_PASSWORD}"]