mysql-migration #8

Merged
williamp merged 7 commits from mysql-migration into testing 2023-03-17 04:58:27 +00:00
8 changed files with 50 additions and 94 deletions
Showing only changes of commit ccdc9940df - Show all commits

View File

@@ -1,6 +1,7 @@
FROM python:3.11.0-alpine3.16 FROM python:3.11.0-alpine3.16
COPY ./app /app COPY ./app /app
WORKDIR /app WORKDIR /app
RUN apk add gcc musl-dev mariadb-connector-c-dev
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
ENV FLASK_APP=app.py ENV FLASK_APP=app.py
CMD ["gunicorn", "-b", "0.0.0.0:80", "-w", "4", "app:app"] CMD ["gunicorn", "-b", "0.0.0.0:80", "-w", "4", "app:app"]

View File

@@ -4,15 +4,17 @@ services:
image: container-registry.infra.dubyatp.xyz/bellscheduler/app:latest-testing image: container-registry.infra.dubyatp.xyz/bellscheduler/app:latest-testing
restart: always restart: always
environment: environment:
- SQLITE_DB=database.db - MYSQL_USER=root
- MYSQL_PASSWORD=notasecuresecretkeyonlyuseforlocaldevelopment
- MYSQL_HOST=db
- MYSQL_PORT=3306
- MYSQL_DB=bellscheduler
- SECRET_KEY=notasecuresecretkeyonlyuseforlocaldevelopment - SECRET_KEY=notasecuresecretkeyonlyuseforlocaldevelopment
- NODE_NAME=local - NODE_NAME=local
- POD_NAME=local - POD_NAME=local
- FLASK_ENV=development - FLASK_ENV=development
- FLASK_DEBUG=1 - FLASK_DEBUG=1
- PYTHONUNBUFFERED=1 - PYTHONUNBUFFERED=1
volumes:
- ./database.db:/app/database.db
ports: ports:
- 127.0.0.1:80:80 - 127.0.0.1:80:80
db: db: