mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(docker): allow production docker setup to use dedicated mariadb
Signed-off-by: Steven Guikal <void@fluix.one>
This commit is contained in:
parent
4e3cc1dfe2
commit
1cb1ce0d99
4 changed files with 32 additions and 22 deletions
|
@ -9,6 +9,7 @@ services:
|
|||
volumes:
|
||||
- git_data:/aurweb/aur.git
|
||||
- cache:/cache
|
||||
- ${MARIADB_SOCKET_DIR}:/var/run/mysqld
|
||||
|
||||
smartgit:
|
||||
volumes:
|
||||
|
@ -19,12 +20,18 @@ services:
|
|||
php-fpm:
|
||||
volumes:
|
||||
- cache:/cache
|
||||
- ${MARIADB_SOCKET_DIR}:/var/run/mysqld
|
||||
|
||||
fastapi:
|
||||
environment:
|
||||
- FASTAPI_BACKEND="gunicorn"
|
||||
volumes:
|
||||
- cache:/cache
|
||||
- ${MARIADB_SOCKET_DIR}:/var/run/mysqld
|
||||
|
||||
mariadb_init:
|
||||
volumes:
|
||||
- ${MARIADB_SOCKET_DIR}:/var/run/mysqld
|
||||
|
||||
nginx:
|
||||
volumes:
|
||||
|
@ -34,7 +41,7 @@ services:
|
|||
- smartgit_run:/var/run/smartgit
|
||||
|
||||
volumes:
|
||||
mariadb_run: {} # Share /var/run/mysqld/mysqld.sock
|
||||
mariadb_run: {} # Share /var/run/mysqld
|
||||
mariadb_data: {} # Share /var/lib/mysql
|
||||
git_data: {} # Share aurweb/aur.git
|
||||
smartgit_run: {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue