change(docker): use ./data instead of ./cache

For the `git` service, ./data is always used to provide an
optional overriding of ssh host keys. In aur-dev production
containers, most services which use the data mount use an
internal Docker `data` volume instead.

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-20 20:05:04 -08:00
parent 604901fe74
commit d4d9f50b8f
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
10 changed files with 56 additions and 57 deletions

View file

@ -3,7 +3,7 @@ version: "3.8"
services:
ca:
volumes:
- cache:/cache
- data:/data
memcached:
restart: always
@ -23,13 +23,12 @@ services:
volumes:
- ${GIT_DATA_DIR}:/aurweb/aur.git
- ./data:/aurweb/data
- cache:/cache
smartgit:
restart: always
volumes:
- ${GIT_DATA_DIR}:/aurweb/aur.git
- cache:/cache
- data:/data
- smartgit_run:/var/run/smartgit
cgit-php:
@ -48,7 +47,7 @@ services:
- AURWEB_PHP_PREFIX=${AURWEB_PHP_PREFIX}
- AURWEB_SSHD_PREFIX=${AURWEB_SSHD_PREFIX}
volumes:
- cache:/cache
- data:/data
fastapi:
restart: always
@ -60,13 +59,13 @@ services:
- AURWEB_SSHD_PREFIX=${AURWEB_SSHD_PREFIX}
- PROMETHEUS_MULTIPROC_DIR=/tmp_prometheus
volumes:
- cache:/cache
- data:/data
nginx:
restart: always
volumes:
- ${GIT_DATA_DIR}:/aurweb/aur.git
- cache:/cache
- data:/data
- logs:/var/log/nginx
- smartgit_run:/var/run/smartgit
@ -75,5 +74,5 @@ volumes:
mariadb_data: {} # Share /var/lib/mysql
git_data: {} # Share aurweb/aur.git
smartgit_run: {}
cache: {}
data: {}
logs: {}