mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Working on user, backend.
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user