1
0
mirror of https://github.com/tiyn/stud.ip-crawler.git synced 2026-02-22 06:34:48 +01:00

database: switching from mysql to sqlite

Currently we only need the db to keep track of the files that were
already downloaded, thus we only use one database and only one table.
A complete sql database is a bit too bulky for this purpose.
By using sqlite we can minimize and embed the db.
This commit is contained in:
TiynGER
2020-11-17 11:04:03 +01:00
parent 415a21da3b
commit 4a8cf45ad3
7 changed files with 29 additions and 71 deletions

View File

@@ -8,24 +8,9 @@ services:
PSWD: 'pswd'
URL: 'https://url.tld'
INTERVAL: 86400
HOST: 'mysql'
DB_USER: root
DB_PSWD: 'pswddb'
volumes:
- studip:/studip/data
depends_on:
- mysql
mysql:
image: mysql:5.6
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: 'pswddb'
volumes:
- mysql:/var/lib/mysql
volumes:
studip:
driver: local
mysql:
driver: local