Working on user, backend.

This commit is contained in:
charles-gauthereau
2024-10-27 11:51:53 +01:00
parent 1069b2c3ad
commit b62261896b
28 changed files with 7351 additions and 3383 deletions
+27
View File
@@ -6,6 +6,10 @@ services:
volumes:
- ../../backend:/src
command: uvicorn main:app --reload --host 0.0.0.0 --port 80
depends_on:
db:
condition: service_healthy
ports:
- 8888:80
@@ -19,4 +23,27 @@ services:
- ../../frontend:/app
- /app/node_modules
db:
image: postgres:15
ports:
- "5432:5432"
environment:
- POSTGRES_DB=devdb
- POSTGRES_USER=devuser
- POSTGRES_PASSWORD=changeme
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U devuser -d devdb -h db" ]
interval: 2s
timeout: 2s
retries: 20
volumes:
- portabase-db:/var/lib/postgresql/data
volumes:
portabase-db:
+2
View File
@@ -9,6 +9,8 @@ WORKDIR /src
ARG DEV=false
RUN apt-get install openssh-client -y
RUN apt-get update
RUN apt-get install -y postgresql postgresql-client binutils libproj-dev gdal-bin
RUN pip install -r /tmp/requirements.txt
RUN pip install -r /tmp/requirements.dev.txt
+2 -2
View File
@@ -5,8 +5,8 @@ ENV NODE_OPTIONS="--max-old-space-size=8192"
WORKDIR /app
COPY package.json .
RUN yarn install -f
RUN npm install -f
CMD ["yarn", "run", "dev"]
CMD ["npm", "run", "dev"]