feat(gitlab-ci): Add logic for deploying aur-dev with docker-compose

The infrastructure changes are here[1].

[1] https://gitlab.archlinux.org/archlinux/infrastructure/-/merge_requests/492
This commit is contained in:
Kristian Klausen 2021-10-03 00:29:56 +02:00 committed by Kevin Morris
parent 1f2347c6b4
commit 651c1cd8c6
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
2 changed files with 49 additions and 15 deletions

View file

@ -0,0 +1,73 @@
version: "3.8"
services:
ca:
volumes:
- cache:/cache
memcached:
restart: always
redis:
restart: always
mariadb:
restart: always
git:
restart: always
volumes:
- ${GIT_DATA_DIR}:/aurweb/aur.git
- cache:/cache
- ${MARIADB_SOCKET_DIR}:/var/run/mysqld
smartgit:
restart: always
volumes:
- ${GIT_DATA_DIR}:/aurweb/aur.git
- cache:/cache
- smartgit_run:/var/run/smartgit
cgit-php:
restart: always
volumes:
- ${GIT_DATA_DIR}:/aurweb/aur.git
cgit-fastapi:
restart: always
volumes:
- ${GIT_DATA_DIR}:/aurweb/aur.git
php-fpm:
restart: always
volumes:
- cache:/cache
- ${MARIADB_SOCKET_DIR}:/var/run/mysqld
fastapi:
restart: always
environment:
- FASTAPI_BACKEND="gunicorn"
volumes:
- cache:/cache
- ${MARIADB_SOCKET_DIR}:/var/run/mysqld
mariadb_init:
volumes:
- ${MARIADB_SOCKET_DIR}:/var/run/mysqld
nginx:
restart: always
volumes:
- ${GIT_DATA_DIR}:/aurweb/aur.git
- cache:/cache
- logs:/var/log/nginx
- smartgit_run:/var/run/smartgit
volumes:
mariadb_run: {} # Share /var/run/mysqld
mariadb_data: {} # Share /var/lib/mysql
git_data: {} # Share aurweb/aur.git
smartgit_run: {}
cache: {}
logs: {}