diff --git a/helpers/.env b/helpers/.env index c4ec358..49479f8 100644 --- a/helpers/.env +++ b/helpers/.env @@ -1,3 +1,8 @@ -DB_URI=mongodb+srv://xxx -ADMIN_USERNAME=xxx -ADMIN_PASSWORD=xxx \ No newline at end of file +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 \ No newline at end of file diff --git a/helpers/Dockerfile b/helpers/Dockerfile index be33e71..00e1ae3 100644 --- a/helpers/Dockerfile +++ b/helpers/Dockerfile @@ -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}"]