mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
1f2347c6b4
commit
651c1cd8c6
2 changed files with 49 additions and 15 deletions
73
docker-compose.aur-dev.yml
Normal file
73
docker-compose.aur-dev.yml
Normal 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: {}
|
Loading…
Add table
Add a link
Reference in a new issue