mirror of
https://github.com/taogaetz/chefbible.git
synced 2025-12-06 11:47:24 -05:00
update docker compose
This commit is contained in:
parent
7a6bd4b92c
commit
f241b06336
@ -1,5 +1,4 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
chefbible:
|
chefbible:
|
||||||
image: git.redbackpack.ca/taogaetz/chefbible:latest
|
image: git.redbackpack.ca/taogaetz/chefbible:latest
|
||||||
@ -15,10 +14,14 @@ services:
|
|||||||
- ORIGIN=${ORIGIN}
|
- ORIGIN=${ORIGIN}
|
||||||
- ACCESS_PIN=${ACCESS_PIN}
|
- ACCESS_PIN=${ACCESS_PIN}
|
||||||
volumes:
|
volumes:
|
||||||
- /home/chefbible/data:/app/data
|
- chefbible-data:/app/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1:3000/health" ]
|
test: [ "CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1:3000/health" ]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 40s
|
start_period: 40s
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
chefbible-data:
|
||||||
|
|
||||||
|
|||||||
@ -111,6 +111,9 @@
|
|||||||
<span class="badge badge-sm badge-success">
|
<span class="badge badge-sm badge-success">
|
||||||
{recipe.station || 'Pans'}
|
{recipe.station || 'Pans'}
|
||||||
</span>
|
</span>
|
||||||
|
<span class="badge badge-outline badge-sm">
|
||||||
|
{recipe.type || 'Dish'}
|
||||||
|
</span>
|
||||||
{#if authenticated}
|
{#if authenticated}
|
||||||
<button
|
<button
|
||||||
class="btn btn-outline btn-xs btn-primary"
|
class="btn btn-outline btn-xs btn-primary"
|
||||||
|
|||||||
@ -54,18 +54,96 @@
|
|||||||
|
|
||||||
{#if data.authenticated}
|
{#if data.authenticated}
|
||||||
<section class="mx-auto max-w-7xl p-10 lg:p-6">
|
<section class="mx-auto max-w-7xl p-10 lg:p-6">
|
||||||
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
|
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2">
|
||||||
{#each data.recipes as recipe}
|
<a
|
||||||
<RecipeCard {recipe} authenticated={data.authenticated} />
|
href="/ingredients"
|
||||||
{/each}
|
class="card border border-base-200 bg-white p-8 shadow-lg transition-shadow hover:shadow-xl"
|
||||||
|
>
|
||||||
|
<div class="flex flex-col items-center gap-4 text-center">
|
||||||
|
<svg
|
||||||
|
width="48"
|
||||||
|
height="48"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="1.5"
|
||||||
|
class="text-primary"
|
||||||
|
>
|
||||||
|
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5" />
|
||||||
|
</svg>
|
||||||
|
<h2 class="text-2xl font-bold">Ingredients</h2>
|
||||||
|
<p class="text-base-content/70">View all ingredient recipes</p>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a
|
||||||
|
href="/dishes"
|
||||||
|
class="card border border-base-200 bg-white p-8 shadow-lg transition-shadow hover:shadow-xl"
|
||||||
|
>
|
||||||
|
<div class="flex flex-col items-center gap-4 text-center">
|
||||||
|
<svg
|
||||||
|
width="48"
|
||||||
|
height="48"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="1.5"
|
||||||
|
class="text-secondary"
|
||||||
|
>
|
||||||
|
<circle cx="12" cy="12" r="10" />
|
||||||
|
<path d="M12 6v6l4 2" />
|
||||||
|
</svg>
|
||||||
|
<h2 class="text-2xl font-bold">Dishes</h2>
|
||||||
|
<p class="text-base-content/70">View all dish recipes</p>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{:else}
|
{:else}
|
||||||
<section class="mx-auto max-w-7xl p-10 lg:p-6">
|
<section class="mx-auto max-w-7xl p-10 lg:p-6">
|
||||||
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
|
<div class="grid grid-cols-1 gap-6 sm:grid-cols-2">
|
||||||
{#each data.recipes as recipe}
|
<a
|
||||||
<RecipeCard {recipe} authenticated={data.authenticated} />
|
href="/ingredients"
|
||||||
{/each}
|
class="card border border-base-200 bg-white p-8 shadow-lg transition-shadow hover:shadow-xl"
|
||||||
|
>
|
||||||
|
<div class="flex flex-col items-center gap-4 text-center">
|
||||||
|
<svg
|
||||||
|
width="48"
|
||||||
|
height="48"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="1.5"
|
||||||
|
class="text-primary"
|
||||||
|
>
|
||||||
|
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5" />
|
||||||
|
</svg>
|
||||||
|
<h2 class="text-2xl font-bold">Ingredients</h2>
|
||||||
|
<p class="text-base-content/70">View all ingredient recipes</p>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a
|
||||||
|
href="/dishes"
|
||||||
|
class="card border border-base-200 bg-white p-8 shadow-lg transition-shadow hover:shadow-xl"
|
||||||
|
>
|
||||||
|
<div class="flex flex-col items-center gap-4 text-center">
|
||||||
|
<svg
|
||||||
|
width="48"
|
||||||
|
height="48"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
|
stroke-width="1.5"
|
||||||
|
class="text-secondary"
|
||||||
|
>
|
||||||
|
<circle cx="12" cy="12" r="10" />
|
||||||
|
<path d="M12 6v6l4 2" />
|
||||||
|
</svg>
|
||||||
|
<h2 class="text-2xl font-bold">Dishes</h2>
|
||||||
|
<p class="text-base-content/70">View all dish recipes</p>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@ -514,6 +514,14 @@
|
|||||||
<option value="Grill" selected={data.recipe?.station === 'Grill'}>Grill</option>
|
<option value="Grill" selected={data.recipe?.station === 'Grill'}>Grill</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<label class="form-control min-w-0">
|
||||||
|
<span class="label"><span class="label-text font-bold">Type</span></span>
|
||||||
|
<select name="type" class="select-bordered select w-full min-w-0">
|
||||||
|
<option value="Dish" selected={data.recipe?.type === 'Dish'}>Dish</option>
|
||||||
|
<option value="Ingredient" selected={data.recipe?.type === 'Ingredient'}>Ingredient</option>
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label class="form-control min-w-0">
|
<label class="form-control min-w-0">
|
||||||
|
|||||||
@ -469,6 +469,14 @@
|
|||||||
<option>Grill</option>
|
<option>Grill</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<label class="form-control">
|
||||||
|
<span class="label"><span class="label-text font-bold">Type</span></span>
|
||||||
|
<select name="type" class="select-bordered select w-full min-w-0">
|
||||||
|
<option value="Dish" selected>Dish</option>
|
||||||
|
<option value="Ingredient">Ingredient</option>
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label class="form-control min-w-0">
|
<label class="form-control min-w-0">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user