Verified Commit 81417ea8 authored by Kevin Morris's avatar Kevin Morris
Browse files

change(docker): merge production git repo bind mount

This merge requires production users to specify an host
directory to bind as the git repository within Docker containers.

This means that a repository can be shared between host
and container, so that the repository does not need to be
managed within Docker alone.

New environment variables:

- GIT_DATA_DIR: Path to aur.git repository that is bind mounted

Do note, this variable only takes affect when users run
production Docker services, by supplying:

    $ docker-compose -f docker-compose.yml -f docker-compose.prod.yml ...
parents 13b344d2 e9fc27a3
Pipeline #12483 passed with stage
in 7 minutes and 33 seconds
......@@ -3,3 +3,4 @@ FASTAPI_WORKERS=2
MARIADB_SOCKET_DIR="/var/run/mysqld/"
CGIT_CLONE_PREFIX_PHP=https://localhost:8443
CGIT_CLONE_PREFIX_FASTAPI=https://localhost:8444
GIT_DATA_DIR="./aur.git/"
......@@ -7,16 +7,24 @@ services:
git:
volumes:
- git_data:/aurweb/aur.git
- ${GIT_DATA_DIR}:/aurweb/aur.git
- cache:/cache
- ${MARIADB_SOCKET_DIR}:/var/run/mysqld
smartgit:
volumes:
- git_data:/aurweb/aur.git
- ${GIT_DATA_DIR}:/aurweb/aur.git
- cache:/cache
- 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:
volumes:
- cache:/cache
......@@ -35,7 +43,7 @@ services:
nginx:
volumes:
- git_data:/aurweb/aur.git
- ${GIT_DATA_DIR}:/aurweb/aur.git
- cache:/cache
- logs:/var/log/nginx
- smartgit_run:/var/run/smartgit
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment