init DRF + sde models

This commit is contained in:
Tom Villette
2023-10-26 18:05:30 +02:00
parent 2a454dcd00
commit d4c09332b5
24 changed files with 500 additions and 27 deletions

View File

@@ -1,22 +1,41 @@
version: '3'
services:
eveal:
migrations:
image: mabras:local
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
user: "1000:1000"
volumes:
- ./mabras:/app/mabras
- ./api:/app/api
- ./manage.py:/app/manage.py
command: "python manage.py makemigrations;python manage.py migrate"
depends_on:
db:
condition: service_healthy
eveal:
image: mabras:local
env_file:
- .env
ports:
- 8000:8000
user: "1000:1000"
volumes:
- ./eveal:/app/eveal
command: ["uvicorn", "eveal.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
- ./mabras:/app/mabras
- ./api:/app/api
- ./manage.py:/app/manage.py
command: ["uvicorn", "mabras.asgi:application", "--host", "0.0.0.0", "--port", "8000", "--reload"]
depends_on:
redis:
condition: service_healthy
db:
condition: service_healthy
migrations:
condition: service_completed_successfully
# elasticsearch:
# condition: service_healthy
@@ -38,9 +57,9 @@ services:
- .env
healthcheck:
test: pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
interval: 10s
interval: 1s
timeout: 3s
retries: 3
retries: 10
# elasticsearch:
# image: elasticsearch:latest