Compare commits

...
Sign in to create a new pull request.

35 commits

Author SHA1 Message Date
max
31e72e9b93 set mariadb root host to %
Co-authored-by: mst <oivan2401@gmail.com>
2025-02-28 13:23:34 +00:00
max
52bcad93fb remove remote access fix 2025-02-28 13:23:34 +00:00
max
698d36b35f remove remote access fix in docker compose 2025-02-28 13:23:34 +00:00
max
8cbbe87ee7 add bridge driver to catask network 2025-02-28 13:23:34 +00:00
max
cdaaf3fa82 remove ipam config 2025-02-28 13:23:34 +00:00
max
ca2ff99f30 remove bridge driver in ipam con fig 2025-02-28 13:23:34 +00:00
max
e6e8ee7d0a configure ipam in networks 2025-02-28 13:23:34 +00:00
max
755d599f8f apply 127.0.0.1 as catask service's ipv4 address 2025-02-28 13:23:34 +00:00
max
9cdd764271 remove port expose declaration in docker compose as the mariadb image already has this
add static ip address to catask network
2025-02-28 13:23:34 +00:00
max
1d3638d8ac add mariadb fix config to docker-compose 2025-02-28 13:23:34 +00:00
max
2c8b5199c3 add remote access fix config for mariadb 2025-02-28 13:23:34 +00:00
max
72aab3e74c expose mariadb's port 3306 as tcp 2025-02-28 13:23:34 +00:00
max
c9f180d1c0 readd networks (again) 2025-02-28 13:23:34 +00:00
max
b08d281e62 use short syntax for catask config binds in docker compose 2025-02-28 13:23:34 +00:00
max
07a90a5b92 revert 2d35928e4a3bbb06294e0c659f6fa851b7aa675a
revert readd networks
2025-02-28 13:23:34 +00:00
max
185eca237c readd networks 2025-02-28 13:23:34 +00:00
max
643270ec15 add healthcheck to mariadb container
wait until mariadb is fully started when starting catask container
remove custom networks in docker compose
2025-02-28 13:23:34 +00:00
max
c63020a334 add custom network for custom host binding 2025-02-28 13:23:34 +00:00
max
f1f06724cd remove admin password argument in dockerfile 2025-02-28 13:23:34 +00:00
max
ed733a8a13 remove admin password argument in docker compose 2025-02-28 13:23:34 +00:00
max
76e061cb8a bind to 0.0.0.0:8000 in dockerfile entrypoint so that docker port exposing works properly 2025-02-28 13:23:34 +00:00
max
c200cbc975 connect schema to mariadb container's initdb 2025-02-28 13:23:34 +00:00
max
c23599f21f remove .env and config.json file creation in dockerfile 2025-02-28 13:23:34 +00:00
max
4597c5c702 bind to proper files in docker compose 2025-02-28 13:23:34 +00:00
max
d4c8cb6e27 revert b62c3d87cb22a5550a649e450bb342a21db02b72
revert get catask configs from volume "subdirectory" in docker compose
2025-02-28 13:23:34 +00:00
max
394e7a1892 get catask configs from volume "subdirectory" in docker compose 2025-02-28 13:23:34 +00:00
max
9b26e35e26 allow empty root password in mariadb in docker compose 2025-02-28 13:23:34 +00:00
max
a6142c50c0 try to bind volume in docker compose 2025-02-28 13:23:34 +00:00
max
a4845f8f8a fix example config not copying to production config in dockerfile 2025-02-28 13:23:34 +00:00
max
150453f3e7 expose port 8000 in docker compose 2025-02-28 13:23:34 +00:00
max
7ce504fcbb add volumes to docker compose
add admin password arg
2025-02-28 13:23:34 +00:00
max
00e87af7a3 revert 196763057f7f531ec1df6b8bc5b62917fe6332a4
revert change db user and password to root
2025-02-28 13:23:34 +00:00
max
58fec773b5 add docker compose 2025-02-28 13:23:34 +00:00
max
a0715ba4b9 change db user and password to root 2025-02-28 13:23:34 +00:00
max
b71e337eaa add dockerfile 2025-02-28 13:23:34 +00:00
2 changed files with 51 additions and 0 deletions

7
Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM python:3-alpine
WORKDIR /catask
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
ENTRYPOINT [ "gunicorn", "-w", "4", "app:app", "--bind", "0.0.0.0:8000" ]

44
docker-compose.yml Normal file
View file

@ -0,0 +1,44 @@
name: catask
services:
mariadb:
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 1
MARIADB_DATABASE: catask
MARIADB_USER: catask
MARIADB_PASSWORD: catask
MARIADB_ROOT_HOST: "%"
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
image: mariadb
networks:
- catask
restart: always
volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/1.sql
- db-data:/var/lib/mysql
catask:
build:
dockerfile: Dockerfile
depends_on:
mariadb:
condition: service_healthy
networks:
- catask
ports:
- "8000:8000"
volumes:
- ./config.json:/catask/config.json
- ./.env:/catask/.env
networks:
catask:
driver: bridge
volumes:
db-data: