From 36dab545e185d81bf54f3fbf349c400f35b3716c Mon Sep 17 00:00:00 2001 From: Adrien Poupa Date: Wed, 27 Dec 2023 18:58:32 -0500 Subject: [PATCH] feat: Add Tandoor --- tandoor/.env.example | 6 +++--- tandoor/docker-compose.yml | 10 ++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/tandoor/.env.example b/tandoor/.env.example index c3b92d7..646356a 100644 --- a/tandoor/.env.example +++ b/tandoor/.env.example @@ -64,17 +64,17 @@ SHOPPING_MIN_AUTOSYNC_INTERVAL=5 # If base URL is something other than just / (you are serving a subfolder in your proxy for instance http://recipe_app/recipes/) # Be sure to not have a trailing slash: e.g. '/recipes' instead of '/recipes/' - SCRIPT_NAME=/recipes +SCRIPT_NAME=/recipes # If staticfiles are stored at a different location uncomment and change accordingly, MUST END IN / # this is not required if you are just using a subfolder # This can either be a relative path from the applications base path or the url of an external host - STATIC_URL=/recipes/static/ +STATIC_URL=/recipes/static/ # If mediafiles are stored at a different location uncomment and change accordingly, MUST END IN / # this is not required if you are just using a subfolder # This can either be a relative path from the applications base path or the url of an external host - MEDIA_URL=/recipes/media/ +MEDIA_URL=/recipes/media/ # Serve mediafiles directly using gunicorn. Basically everyone recommends not doing this. Please use any of the examples # provided that include an additional nxginx container to handle media file serving. diff --git a/tandoor/docker-compose.yml b/tandoor/docker-compose.yml index a75a469..008c0e8 100644 --- a/tandoor/docker-compose.yml +++ b/tandoor/docker-compose.yml @@ -11,7 +11,10 @@ services: - ./tandoor/database:/opt/recipes/database - ./tandoor/mediafiles:/opt/recipes/mediafiles - tandoor-staticfiles:/opt/recipes/staticfiles - # TODO healthcheck: + healthcheck: + test: ["CMD", "wget", "http://127.0.0.1:8080/recipes", "-qO", "/dev/null"] + interval: 5s + retries: 10 profiles: - tandoor @@ -25,7 +28,10 @@ services: - ./tandoor/nginx:/etc/nginx/conf.d:ro - ./tandoor/mediafiles:/media:ro - tandoor-staticfiles:/static:ro - # TODO healthcheck: + healthcheck: + test: ["CMD", "wget", "http://127.0.0.1/recipes", "-qO", "/dev/null"] + interval: 5s + retries: 10 depends_on: - tandoor labels: