| web/app/__pycache__/ | web/app/__pycache__/ | ||||
| .env.prod | .env.prod | ||||
| .env.dev | .env.dev | ||||
| .env | |||||
| .DS_Store | .DS_Store | ||||
| database_functions_live.sh | database_functions_live.sh | ||||
| old_database_schema | old_database_schema | ||||
| db_exports | db_exports | ||||
| db_imports | db_imports | ||||
| node_modules | |||||
| node_modules | |||||
| docker-compose.yml |
| services: | services: | ||||
| web: | web: | ||||
| build: ./web | build: ./web | ||||
| container_name: python | |||||
| container_name: compendium | |||||
| restart: unless-stopped | restart: unless-stopped | ||||
| expose: | expose: | ||||
| - 5000 | - 5000 | ||||
| db: | db: | ||||
| image: mariadb:latest | image: mariadb:latest | ||||
| container_name: mariadb | |||||
| container_name: compendium_mariadb | |||||
| restart: unless-stopped | restart: unless-stopped | ||||
| env_file: | env_file: | ||||
| - ./.env.nginx | - ./.env.nginx |
| services: | services: | ||||
| web: | web: | ||||
| build: ./web | build: ./web | ||||
| container_name: python | |||||
| container_name: compendium | |||||
| restart: unless-stopped | restart: unless-stopped | ||||
| ports: | ports: | ||||
| - "5000:5000" | - "5000:5000" | ||||
| db: | db: | ||||
| image: mariadb:latest | image: mariadb:latest | ||||
| container_name: mariadb | |||||
| container_name: compendium_mariadb | |||||
| restart: unless-stopped | restart: unless-stopped | ||||
| env_file: | env_file: | ||||
| - ./.env | - ./.env |
| # syntax=docker/dockerfile:1 | # 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 | WORKDIR /code | ||||
| COPY requirements.txt requirements.txt | COPY requirements.txt requirements.txt | ||||
| RUN pip install -r requirements.txt | RUN pip install -r requirements.txt | ||||
| COPY . . | COPY . . | ||||
| CMD ["python3", "-m", "flask", "run"] | |||||
| CMD ["python3", "-m", "flask", "run"] |