| @@ -1,9 +1,11 @@ | |||
| web/app/__pycache__/ | |||
| .env.prod | |||
| .env.dev | |||
| .env | |||
| .DS_Store | |||
| database_functions_live.sh | |||
| old_database_schema | |||
| db_exports | |||
| db_imports | |||
| node_modules | |||
| node_modules | |||
| docker-compose.yml | |||
| @@ -1,7 +1,7 @@ | |||
| services: | |||
| web: | |||
| build: ./web | |||
| container_name: python | |||
| container_name: compendium | |||
| restart: unless-stopped | |||
| expose: | |||
| - 5000 | |||
| @@ -15,7 +15,7 @@ services: | |||
| db: | |||
| image: mariadb:latest | |||
| container_name: mariadb | |||
| container_name: compendium_mariadb | |||
| restart: unless-stopped | |||
| env_file: | |||
| - ./.env.nginx | |||
| @@ -1,7 +1,7 @@ | |||
| services: | |||
| web: | |||
| build: ./web | |||
| container_name: python | |||
| container_name: compendium | |||
| restart: unless-stopped | |||
| ports: | |||
| - "5000:5000" | |||
| @@ -14,7 +14,7 @@ services: | |||
| db: | |||
| image: mariadb:latest | |||
| container_name: mariadb | |||
| container_name: compendium_mariadb | |||
| restart: unless-stopped | |||
| env_file: | |||
| - ./.env | |||
| @@ -1,8 +1,8 @@ | |||
| # syntax=docker/dockerfile:1 | |||
| FROM python:3.8-slim-buster | |||
| RUN apt update && apt install -y apt-transport-https ca-certificates sqlite3 | |||
| FROM python:3.11-slim-bookworm | |||
| RUN apt-get update && apt-get install -y apt-transport-https ca-certificates sqlite3 | |||
| WORKDIR /code | |||
| COPY requirements.txt requirements.txt | |||
| RUN pip install -r requirements.txt | |||
| COPY . . | |||
| CMD ["python3", "-m", "flask", "run"] | |||
| CMD ["python3", "-m", "flask", "run"] | |||