fix bug in initial db creation caused by prometheus lib rtying to access tables at load time
This commit is contained in:
parent
6b0def543c
commit
d80fb60afd
8 changed files with 41 additions and 33 deletions
|
@ -1,11 +1,11 @@
|
|||
FROM python:3.11-bookworm
|
||||
FROM python:3.11-slim-bookworm
|
||||
LABEL authors="lagertonne"
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
RUN mkdir /code
|
||||
WORKDIR /code
|
||||
COPY requirements.prod.txt /code/
|
||||
RUN apt update && apt install -y mariadb-client
|
||||
RUN pip install -r requirements.prod.txt
|
||||
RUN apt update && apt install -y pkg-config mariadb-client default-libmysqlclient-dev build-essential
|
||||
RUN pip install mysqlclient
|
||||
COPY requirements.prod.txt /code/
|
||||
RUN pip install -r requirements.prod.txt
|
||||
COPY .. /code/
|
|
@ -1,4 +1,4 @@
|
|||
FROM docker.io/node:22
|
||||
FROM node:22-alpine
|
||||
|
||||
RUN mkdir /web
|
||||
WORKDIR /web
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
name: c3lf-sys3-testing
|
||||
services:
|
||||
redis:
|
||||
image: redis
|
||||
|
@ -31,8 +32,9 @@ services:
|
|||
- DB_PASSWORD=system3
|
||||
- MAIL_DOMAIN=mail:1025
|
||||
volumes:
|
||||
- ../../core:/code
|
||||
- ../testdata.py:/code/testdata.py
|
||||
- ../../core:/code:ro
|
||||
- ../testdata.py:/code/testdata.py:ro
|
||||
- backend_context:/code
|
||||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
|
@ -47,8 +49,8 @@ services:
|
|||
command: npm run serve
|
||||
volumes:
|
||||
- ../../web:/web:ro
|
||||
- /web/node_modules
|
||||
- ./vue.config.js:/web/vue.config.js
|
||||
- ./vue.config.js:/web/vue.config.js:ro
|
||||
- frontend_context:/web
|
||||
ports:
|
||||
- "8080:8080"
|
||||
depends_on:
|
||||
|
@ -70,3 +72,5 @@ services:
|
|||
volumes:
|
||||
mariadb_data:
|
||||
mailpit_data:
|
||||
frontend_context:
|
||||
backend_context:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue