tools: fix make/compose
This commit is contained in:
@@ -24,7 +24,7 @@ endif
|
|||||||
DOCKER ?= podman
|
DOCKER ?= podman
|
||||||
|
|
||||||
APP_EXEC ?= $(DOCKER) compose exec app
|
APP_EXEC ?= $(DOCKER) compose exec app
|
||||||
APP_RUN ?= $(DOCKER) compose run --rm -it app
|
APP_RUN ?= $(DOCKER) compose run --rm app
|
||||||
TORTOISE ?= $(APP_RUN) uv run tortoise
|
TORTOISE ?= $(APP_RUN) uv run tortoise
|
||||||
|
|
||||||
POSTGRES_EXEC ?= $(DOCKER) compose exec postgres
|
POSTGRES_EXEC ?= $(DOCKER) compose exec postgres
|
||||||
|
|||||||
+2
-10
@@ -17,7 +17,7 @@ services:
|
|||||||
- BIND=0.0.0.0
|
- BIND=0.0.0.0
|
||||||
- DB_URI=postgres://tout-doux:tout-doux@postgres:5432/tout-doux
|
- DB_URI=postgres://tout-doux:tout-doux@postgres:5432/tout-doux
|
||||||
- CACHE_URI=redis://redis:6379
|
- CACHE_URI=redis://redis:6379
|
||||||
command: uv run tout-doux --debug
|
command: uv run --no-cache --no-sync --link-mode=copy tout-doux --debug
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -40,15 +40,7 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
image: postgres:17
|
image: postgres:17
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test:
|
test: ["CMD-SHELL", "pg_isready -d tout-doux -U tout-doux"]
|
||||||
[
|
|
||||||
"CMD-SHELL",
|
|
||||||
"pg_isready",
|
|
||||||
"-d",
|
|
||||||
"tout-doux",
|
|
||||||
"-U",
|
|
||||||
"tout-doux",
|
|
||||||
]
|
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 60s
|
timeout: 60s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user