mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(docker): make git data directory host-configurable
Signed-off-by: Steven Guikal <void@fluix.one>
This commit is contained in:
parent
0b1c3ea539
commit
e9fc27a33b
2 changed files with 12 additions and 3 deletions
1
.env
1
.env
|
@ -3,3 +3,4 @@ FASTAPI_WORKERS=2
|
||||||
MARIADB_SOCKET_DIR="/var/run/mysqld/"
|
MARIADB_SOCKET_DIR="/var/run/mysqld/"
|
||||||
CGIT_CLONE_PREFIX_PHP=https://localhost:8443
|
CGIT_CLONE_PREFIX_PHP=https://localhost:8443
|
||||||
CGIT_CLONE_PREFIX_FASTAPI=https://localhost:8444
|
CGIT_CLONE_PREFIX_FASTAPI=https://localhost:8444
|
||||||
|
GIT_DATA_DIR="./aur.git/"
|
||||||
|
|
|
@ -7,16 +7,24 @@ services:
|
||||||
|
|
||||||
git:
|
git:
|
||||||
volumes:
|
volumes:
|
||||||
- git_data:/aurweb/aur.git
|
- ${GIT_DATA_DIR}:/aurweb/aur.git
|
||||||
- cache:/cache
|
- cache:/cache
|
||||||
- ${MARIADB_SOCKET_DIR}:/var/run/mysqld
|
- ${MARIADB_SOCKET_DIR}:/var/run/mysqld
|
||||||
|
|
||||||
smartgit:
|
smartgit:
|
||||||
volumes:
|
volumes:
|
||||||
- git_data:/aurweb/aur.git
|
- ${GIT_DATA_DIR}:/aurweb/aur.git
|
||||||
- cache:/cache
|
- cache:/cache
|
||||||
- smartgit_run:/var/run/smartgit
|
- smartgit_run:/var/run/smartgit
|
||||||
|
|
||||||
|
cgit-php:
|
||||||
|
volumes:
|
||||||
|
- ${GIT_DATA_DIR}:/aurweb/aur.git
|
||||||
|
|
||||||
|
cgit-fastapi:
|
||||||
|
volumes:
|
||||||
|
- ${GIT_DATA_DIR}:/aurweb/aur.git
|
||||||
|
|
||||||
php-fpm:
|
php-fpm:
|
||||||
volumes:
|
volumes:
|
||||||
- cache:/cache
|
- cache:/cache
|
||||||
|
@ -35,7 +43,7 @@ services:
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
volumes:
|
volumes:
|
||||||
- git_data:/aurweb/aur.git
|
- ${GIT_DATA_DIR}:/aurweb/aur.git
|
||||||
- cache:/cache
|
- cache:/cache
|
||||||
- logs:/var/log/nginx
|
- logs:/var/log/nginx
|
||||||
- smartgit_run:/var/run/smartgit
|
- smartgit_run:/var/run/smartgit
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue