1
This commit is contained in:
parent
7215558813
commit
77003ee8c1
@ -7,14 +7,14 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
DATABASE_URL: sqlite+aiosqlite:////app/data/palm_reading.db
|
DATABASE_URL: sqlite+aiosqlite:////app/data/palm_reading.db
|
||||||
UPLOAD_DIR: /app/storage/uploads
|
UPLOAD_DIR: /app/storage/uploads
|
||||||
CORS_ORIGINS: '["http://127.0.0.1:3000","http://localhost:3000"]'
|
CORS_ORIGINS: '["http://127.0.0.1:3011","http://localhost:3011"]'
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8066:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- backend_data:/app/data
|
- backend_data:/app/data
|
||||||
- backend_storage:/app/storage
|
- backend_storage:/app/storage
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health').read()"]
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8066/health').read()"]
|
||||||
interval: 15s
|
interval: 15s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 10
|
retries: 10
|
||||||
@ -23,9 +23,9 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./web
|
context: ./web
|
||||||
environment:
|
environment:
|
||||||
API_INTERNAL_URL: http://backend:8000
|
API_INTERNAL_URL: http://backend:8066
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3011:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
backend:
|
backend:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user