Skip to content

Commit

Permalink
feat: Add Tandoor
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienPoupa committed Dec 27, 2023
1 parent 31cc852 commit 36dab54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tandoor/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 8 additions & 2 deletions tandoor/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand Down

0 comments on commit 36dab54

Please sign in to comment.