mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	bug: mongo updates fail #99
This commit is contained in:
		| @@ -26,6 +26,7 @@ services: | |||||||
|     ports: |     ports: | ||||||
|       - 9921:9000 |       - 9921:9000 | ||||||
|     environment: |     environment: | ||||||
|  |       db_type: mongo | ||||||
|       TZ: America/Anchorage # Specify Correct Timezone for Date/Time to line up correctly. |       TZ: America/Anchorage # Specify Correct Timezone for Date/Time to line up correctly. | ||||||
|       db_username: root |       db_username: root | ||||||
|       db_password: example |       db_password: example | ||||||
|   | |||||||
| @@ -7,26 +7,26 @@ services: | |||||||
|     container_name: mealie |     container_name: mealie | ||||||
|     restart: always |     restart: always | ||||||
|     ports: |     ports: | ||||||
|       - 9090:80 |       - 9099:80 | ||||||
|     environment: |     environment: | ||||||
|       db_type: sql |       db_type: mongo | ||||||
|       db_username: root |       db_username: root | ||||||
|       db_password: example |       db_password: example | ||||||
|       db_host: mongo |       db_host: mongo | ||||||
|       db_port: 27017 |       db_port: 27017 | ||||||
|     # volumes: |     # volumes: | ||||||
|     #   - ./mealie/data/:/app/data |     #   - ./mealie/data/:/app/data | ||||||
|   # mongo: |   mongo: | ||||||
|   #   image: mongo |     image: mongo | ||||||
|   #   restart: always |     restart: always | ||||||
|   #   environment: |     environment: | ||||||
|   #     MONGO_INITDB_ROOT_USERNAME: root |       MONGO_INITDB_ROOT_USERNAME: root | ||||||
|   #     MONGO_INITDB_ROOT_PASSWORD: example |       MONGO_INITDB_ROOT_PASSWORD: example | ||||||
|   # mongo-express: # Optional Mongo GUI |   mongo-express: # Optional Mongo GUI | ||||||
|   #   image: mongo-express |     image: mongo-express | ||||||
|   #   restart: always |     restart: always | ||||||
|   #   ports: |     ports: | ||||||
|   #     - 9091:8081 |       - 9091:8081 | ||||||
|   #   environment: |     environment: | ||||||
|   #     ME_CONFIG_MONGODB_ADMINUSERNAME: root |       ME_CONFIG_MONGODB_ADMINUSERNAME: root | ||||||
|   #     ME_CONFIG_MONGODB_ADMINPASSWORD: example |       ME_CONFIG_MONGODB_ADMINPASSWORD: example | ||||||
|   | |||||||
| @@ -13,6 +13,8 @@ class RecipeDocument(mongoengine.Document): | |||||||
|     recipeIngredient = mongoengine.ListField(required=True, default=[]) |     recipeIngredient = mongoengine.ListField(required=True, default=[]) | ||||||
|     recipeInstructions = mongoengine.ListField(requiredd=True, default=[]) |     recipeInstructions = mongoengine.ListField(requiredd=True, default=[]) | ||||||
|     totalTime = mongoengine.StringField(required=False) |     totalTime = mongoengine.StringField(required=False) | ||||||
|  |     prepTime = mongoengine.StringField(required=False) | ||||||
|  |     performTime = mongoengine.StringField(required=False) | ||||||
|  |  | ||||||
|     # Mealie Specific |     # Mealie Specific | ||||||
|     slug = mongoengine.StringField(required=True, unique=True) |     slug = mongoengine.StringField(required=True, unique=True) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user