mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Docker: mount codebase volumes
Before, docker build was the only way to transfer new code over to the docker image. This allows users to execute code in their working directory. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
a36cc0c00a
commit
565b928a59
1 changed files with 28 additions and 1 deletions
|
@ -113,7 +113,10 @@ services:
|
||||||
- mariadb_run:/var/run/mysqld # Bind socket in this volume.
|
- mariadb_run:/var/run/mysqld # Bind socket in this volume.
|
||||||
- mariadb_data:/var/lib/mysql
|
- mariadb_data:/var/lib/mysql
|
||||||
- ./cache:/cache
|
- ./cache:/cache
|
||||||
|
- ./aurweb:/aurweb/aurweb
|
||||||
|
- ./migrations:/aurweb/migrations
|
||||||
|
- ./test:/aurweb/test
|
||||||
|
- ./web:/aurweb/web
|
||||||
|
|
||||||
fastapi:
|
fastapi:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -141,6 +144,10 @@ services:
|
||||||
- mariadb_run:/var/run/mysqld # Bind socket in this volume.
|
- mariadb_run:/var/run/mysqld # Bind socket in this volume.
|
||||||
- mariadb_data:/var/lib/mysql
|
- mariadb_data:/var/lib/mysql
|
||||||
- ./cache:/cache
|
- ./cache:/cache
|
||||||
|
- ./aurweb:/aurweb/aurweb
|
||||||
|
- ./migrations:/aurweb/migrations
|
||||||
|
- ./test:/aurweb/test
|
||||||
|
- ./web:/aurweb/web
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -171,6 +178,10 @@ services:
|
||||||
- git_data:/aurweb/aur.git
|
- git_data:/aurweb/aur.git
|
||||||
- ./cache:/cache
|
- ./cache:/cache
|
||||||
- ./logs:/var/log/nginx
|
- ./logs:/var/log/nginx
|
||||||
|
- ./aurweb:/aurweb/aurweb
|
||||||
|
- ./migrations:/aurweb/migrations
|
||||||
|
- ./test:/aurweb/test
|
||||||
|
- ./web:/aurweb/web
|
||||||
|
|
||||||
sharness:
|
sharness:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -189,6 +200,10 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- git_data:/aurweb/aur.git
|
- git_data:/aurweb/aur.git
|
||||||
- ./cache:/cache
|
- ./cache:/cache
|
||||||
|
- ./aurweb:/aurweb/aurweb
|
||||||
|
- ./migrations:/aurweb/migrations
|
||||||
|
- ./test:/aurweb/test
|
||||||
|
- ./web:/aurweb/web
|
||||||
|
|
||||||
pytest-mysql:
|
pytest-mysql:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -211,6 +226,10 @@ services:
|
||||||
- mariadb_run:/var/run/mysqld
|
- mariadb_run:/var/run/mysqld
|
||||||
- git_data:/aurweb/aur.git
|
- git_data:/aurweb/aur.git
|
||||||
- ./cache:/cache
|
- ./cache:/cache
|
||||||
|
- ./aurweb:/aurweb/aurweb
|
||||||
|
- ./migrations:/aurweb/migrations
|
||||||
|
- ./test:/aurweb/test
|
||||||
|
- ./web:/aurweb/web
|
||||||
|
|
||||||
pytest-sqlite:
|
pytest-sqlite:
|
||||||
image: aurweb:latest
|
image: aurweb:latest
|
||||||
|
@ -225,6 +244,10 @@ services:
|
||||||
- mariadb_run:/var/run/mysqld
|
- mariadb_run:/var/run/mysqld
|
||||||
- git_data:/aurweb/aur.git
|
- git_data:/aurweb/aur.git
|
||||||
- ./cache:/cache
|
- ./cache:/cache
|
||||||
|
- ./aurweb:/aurweb/aurweb
|
||||||
|
- ./migrations:/aurweb/migrations
|
||||||
|
- ./test:/aurweb/test
|
||||||
|
- ./web:/aurweb/web
|
||||||
depends_on:
|
depends_on:
|
||||||
git:
|
git:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
@ -247,6 +270,10 @@ services:
|
||||||
- mariadb_run:/var/run/mysqld
|
- mariadb_run:/var/run/mysqld
|
||||||
- git_data:/aurweb/aur.git
|
- git_data:/aurweb/aur.git
|
||||||
- ./cache:/cache
|
- ./cache:/cache
|
||||||
|
- ./aurweb:/aurweb/aurweb
|
||||||
|
- ./migrations:/aurweb/migrations
|
||||||
|
- ./test:/aurweb/test
|
||||||
|
- ./web:/aurweb/web
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mariadb_run: {} # Share /var/run/mysqld/mysqld.sock
|
mariadb_run: {} # Share /var/run/mysqld/mysqld.sock
|
||||||
|
|
Loading…
Add table
Reference in a new issue