Switch to MariaDB database

This commit is contained in:
Lexi / Zoe 2022-04-15 03:10:10 +02:00
parent 4b9d973f40
commit 7755bfb46d
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
4 changed files with 89 additions and 52 deletions

View file

@ -1,4 +1,4 @@
version: '3'
version: '3.9'
services:
backend:
@ -8,6 +8,9 @@ services:
args:
# Use an ".env" file to overwrite this variable if your local user's UID is not 1000.
DEV_USER_UID: ${DEV_USER_UID:-1000}
depends_on:
db:
condition: service_healthy
ports:
- '5000:5000'
volumes:
@ -16,5 +19,29 @@ services:
- development.env
command: flask run --host=0.0.0.0
db:
image: mariadb
volumes:
- mariadb_data:/var/lib/mysql
environment:
MARIADB_DATABASE: tofu
MARIADB_USER: tofu
MARIADB_PASSWORD: development
MARIADB_ROOT_PASSWORD: development
healthcheck:
test: "mysqladmin ping -h 127.0.0.1 -u$$MARIADB_USER -p$$MARIADB_PASSWORD"
interval: 1s
timeout: 1s
retries: 20
adminer:
image: phpmyadmin
ports:
- '8099:80'
environment:
PMA_HOST: db
PMA_USER: tofu
PMA_PASSWORD: development
volumes:
mariadb_data: