mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Merge branch 'docker-compose' of ssh://gitlab.archlinux.org:222/klausenbusk/aurweb into docker-compose
This commit is contained in:
commit
eaf012963a
3 changed files with 91 additions and 35 deletions
47
docker-compose.override.yml
Normal file
47
docker-compose.override.yml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
services:
|
||||||
|
ca:
|
||||||
|
volumes:
|
||||||
|
- ./cache:/cache
|
||||||
|
|
||||||
|
git:
|
||||||
|
volumes:
|
||||||
|
- git_data:/aurweb/aur.git
|
||||||
|
- ./cache:/cache
|
||||||
|
|
||||||
|
smartgit:
|
||||||
|
volumes:
|
||||||
|
- git_data:/aurweb/aur.git
|
||||||
|
- ./cache:/cache
|
||||||
|
- smartgit_run:/var/run/smartgit
|
||||||
|
|
||||||
|
php-fpm:
|
||||||
|
volumes:
|
||||||
|
- ./cache:/cache
|
||||||
|
- ./aurweb:/aurweb/aurweb
|
||||||
|
- ./migrations:/aurweb/migrations
|
||||||
|
- ./test:/aurweb/test
|
||||||
|
- ./web/html:/aurweb/web/html
|
||||||
|
- ./web/template:/aurweb/web/template
|
||||||
|
- ./web/lib:/aurweb/web/lib
|
||||||
|
- ./templates:/aurweb/templates
|
||||||
|
|
||||||
|
fastapi:
|
||||||
|
volumes:
|
||||||
|
- ./cache:/cache
|
||||||
|
- ./aurweb:/aurweb/aurweb
|
||||||
|
- ./migrations:/aurweb/migrations
|
||||||
|
- ./test:/aurweb/test
|
||||||
|
- ./web/html:/aurweb/web/html
|
||||||
|
- ./web/template:/aurweb/web/template
|
||||||
|
- ./web/lib:/aurweb/web/lib
|
||||||
|
- ./templates:/aurweb/templates
|
||||||
|
|
||||||
|
nginx:
|
||||||
|
volumes:
|
||||||
|
- git_data:/aurweb/aur.git
|
||||||
|
- ./cache:/cache
|
||||||
|
- ./logs:/var/log/nginx
|
||||||
|
- ./web/html:/aurweb/web/html
|
||||||
|
- ./web/template:/aurweb/web/template
|
||||||
|
- ./web/lib:/aurweb/web/lib
|
||||||
|
- smartgit_run:/var/run/smartgit
|
40
docker-compose.prod.yml
Normal file
40
docker-compose.prod.yml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
ca:
|
||||||
|
volumes:
|
||||||
|
- cache:/cache
|
||||||
|
|
||||||
|
git:
|
||||||
|
volumes:
|
||||||
|
- git_data:/aurweb/aur.git
|
||||||
|
- cache:/cache
|
||||||
|
|
||||||
|
smartgit:
|
||||||
|
volumes:
|
||||||
|
- git_data:/aurweb/aur.git
|
||||||
|
- cache:/cache
|
||||||
|
- smartgit_run:/var/run/smartgit
|
||||||
|
|
||||||
|
php-fpm:
|
||||||
|
volumes:
|
||||||
|
- cache:/cache
|
||||||
|
|
||||||
|
fastapi:
|
||||||
|
volumes:
|
||||||
|
- cache:/cache
|
||||||
|
|
||||||
|
nginx:
|
||||||
|
volumes:
|
||||||
|
- git_data:/aurweb/aur.git
|
||||||
|
- cache:/cache
|
||||||
|
- logs:/var/log/nginx
|
||||||
|
- smartgit_run:/var/run/smartgit
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mariadb_run: {} # Share /var/run/mysqld/mysqld.sock
|
||||||
|
mariadb_data: {} # Share /var/lib/mysql
|
||||||
|
git_data: {} # Share aurweb/aur.git
|
||||||
|
smartgit_run: {}
|
||||||
|
cache: {}
|
||||||
|
logs: {}
|
|
@ -27,8 +27,6 @@ services:
|
||||||
init: true
|
init: true
|
||||||
entrypoint: /docker/ca-entrypoint.sh
|
entrypoint: /docker/ca-entrypoint.sh
|
||||||
command: echo
|
command: echo
|
||||||
volumes:
|
|
||||||
- ./cache:/cache
|
|
||||||
|
|
||||||
memcached:
|
memcached:
|
||||||
build: .
|
build: .
|
||||||
|
@ -93,9 +91,6 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
mariadb_init:
|
mariadb_init:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
volumes:
|
|
||||||
- git_data:/aurweb/aur.git
|
|
||||||
- ./cache:/cache
|
|
||||||
|
|
||||||
smartgit:
|
smartgit:
|
||||||
build: .
|
build: .
|
||||||
|
@ -110,10 +105,6 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
mariadb:
|
mariadb:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
|
||||||
- git_data:/aurweb/aur.git
|
|
||||||
- ./cache:/cache
|
|
||||||
- smartgit_run:/var/run/smartgit
|
|
||||||
|
|
||||||
cgit-php:
|
cgit-php:
|
||||||
build: .
|
build: .
|
||||||
|
@ -165,15 +156,6 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
memcached:
|
memcached:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
|
||||||
- ./cache:/cache
|
|
||||||
- ./aurweb:/aurweb/aurweb
|
|
||||||
- ./migrations:/aurweb/migrations
|
|
||||||
- ./test:/aurweb/test
|
|
||||||
- ./web/html:/aurweb/web/html
|
|
||||||
- ./web/template:/aurweb/web/template
|
|
||||||
- ./web/lib:/aurweb/web/lib
|
|
||||||
- ./templates:/aurweb/templates
|
|
||||||
ports:
|
ports:
|
||||||
- "19000:9000"
|
- "19000:9000"
|
||||||
|
|
||||||
|
@ -195,15 +177,6 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
|
||||||
- ./cache:/cache
|
|
||||||
- ./aurweb:/aurweb/aurweb
|
|
||||||
- ./migrations:/aurweb/migrations
|
|
||||||
- ./test:/aurweb/test
|
|
||||||
- ./web/html:/aurweb/web/html
|
|
||||||
- ./web/template:/aurweb/web/template
|
|
||||||
- ./web/lib:/aurweb/web/lib
|
|
||||||
- ./templates:/aurweb/templates
|
|
||||||
ports:
|
ports:
|
||||||
- "18000:8000"
|
- "18000:8000"
|
||||||
|
|
||||||
|
@ -231,18 +204,11 @@ services:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
php-fpm:
|
php-fpm:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
|
||||||
- git_data:/aurweb/aur.git
|
|
||||||
- ./cache:/cache
|
|
||||||
- ./logs:/var/log/nginx
|
|
||||||
- ./web/html:/aurweb/web/html
|
|
||||||
- ./web/template:/aurweb/web/template
|
|
||||||
- ./web/lib:/aurweb/web/lib
|
|
||||||
- smartgit_run:/var/run/smartgit
|
|
||||||
|
|
||||||
sharness:
|
sharness:
|
||||||
build: .
|
build: .
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
profiles: ["dev"]
|
||||||
init: true
|
init: true
|
||||||
environment:
|
environment:
|
||||||
- AUR_CONFIG=conf/config.sqlite
|
- AUR_CONFIG=conf/config.sqlite
|
||||||
|
@ -267,6 +233,7 @@ services:
|
||||||
pytest-mysql:
|
pytest-mysql:
|
||||||
build: .
|
build: .
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
profiles: ["dev"]
|
||||||
init: true
|
init: true
|
||||||
environment:
|
environment:
|
||||||
- AUR_CONFIG=conf/config
|
- AUR_CONFIG=conf/config
|
||||||
|
@ -292,6 +259,7 @@ services:
|
||||||
pytest-sqlite:
|
pytest-sqlite:
|
||||||
build: .
|
build: .
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
profiles: ["dev"]
|
||||||
init: true
|
init: true
|
||||||
environment:
|
environment:
|
||||||
- AUR_CONFIG=conf/config.sqlite
|
- AUR_CONFIG=conf/config.sqlite
|
||||||
|
@ -313,6 +281,7 @@ services:
|
||||||
test:
|
test:
|
||||||
build: .
|
build: .
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
profiles: ["dev"]
|
||||||
init: true
|
init: true
|
||||||
environment:
|
environment:
|
||||||
- AUR_CONFIG=conf/config
|
- AUR_CONFIG=conf/config
|
||||||
|
|
Loading…
Add table
Reference in a new issue