Migrated sources from mariadb to sqlite

This commit is contained in:
2026-05-08 13:07:47 +02:00
parent 08c9f4b8b0
commit 41aea49762
6 changed files with 54 additions and 89 deletions

View File

@@ -1,34 +1,12 @@
version: "3"
volumes:
db-data:
services:
db:
image: mariadb:11.4.4
container_name: qaffee-db
restart: always
command: --log-warnings=3
environment:
- "MARIADB_ROOT_PASSWORD=rootpassword"
- "MARIADB_DATABASE=strichliste"
- "MARIADB_USER=strichliste"
- "MARIADB_PASSWORD=strichliste"
volumes:
- db-data:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
networks:
- traefik-net
backend:
build: ./backend
container_name: qaffee-backend
environment:
- "QUARKUS_DATASOURCE_JDBC_URL=jdbc:mariadb://db:3306/strichliste"
- "QUARKUS_DATASOURCE_USERNAME=strichliste"
- "QUARKUS_DATASOURCE_PASSWORD=strichliste"
- "QUARKUS_HTTP_CORS_ORIGINS=https://qaffee.cloud.aquantico.de"
volumes:
- ./data:/data
labels:
traefik.enable: "true"
traefik.docker.network: "traefik-net"
@@ -37,9 +15,6 @@ services:
traefik.http.routers.qaffee-backend.tls: "true"
traefik.http.routers.qaffee-backend.tls.certresolver: "myresolver"
traefik.http.services.qaffee-backend.loadbalancer.server.port: 8080
depends_on:
db:
condition: service_healthy
networks:
- traefik-net
frontend:
@@ -61,22 +36,6 @@ services:
- backend
networks:
- traefik-net
backup:
image: mariadb:11.4.4
container_name: qaffee-backup
environment:
- "MARIADB_HOST=db"
- "MARIADB_USER=strichliste"
- "MARIADB_PASSWORD=strichliste"
volumes:
- ./backups:/backups
- ./db/backup.sh:/backup.sh
entrypoint: ["/bin/bash", "/backup.sh"]
depends_on:
db:
condition: service_healthy
networks:
- traefik-net
networks:
traefik-net:
external: false
external: false