feat: Switch to postgres

Migrate from MariaDB to PostgreSQL.

Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
moson 2023-11-30 15:13:42 +01:00
parent eca8bbf515
commit 122df968dc
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
64 changed files with 1467 additions and 1441 deletions

View file

@ -8,7 +8,7 @@ services:
redis:
restart: always
mariadb:
postgres:
restart: always
git:
@ -36,7 +36,7 @@ services:
cron:
volumes:
# Exclude ./aurweb:/aurweb in production.
- mariadb_run:/var/run/mysqld
- postgres_run:/run/postgresql
- archives:/var/lib/aurweb/archives
fastapi:
@ -59,8 +59,8 @@ services:
- smartgit_run:/var/run/smartgit
volumes:
mariadb_run: {} # Share /var/run/mysqld
mariadb_data: {} # Share /var/lib/mysql
postgres_run: {}
postgres_data: {}
git_data: {} # Share aurweb/aur.git
smartgit_run: {}
data: {}