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_data:/var/lib/mysql
|
||||
- ./cache:/cache
|
||||
|
||||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
|
||||
fastapi:
|
||||
image: aurweb:latest
|
||||
|
@ -141,6 +144,10 @@ services:
|
|||
- mariadb_run:/var/run/mysqld # Bind socket in this volume.
|
||||
- mariadb_data:/var/lib/mysql
|
||||
- ./cache:/cache
|
||||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
|
||||
nginx:
|
||||
image: aurweb:latest
|
||||
|
@ -171,6 +178,10 @@ services:
|
|||
- git_data:/aurweb/aur.git
|
||||
- ./cache:/cache
|
||||
- ./logs:/var/log/nginx
|
||||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
|
||||
sharness:
|
||||
image: aurweb:latest
|
||||
|
@ -189,6 +200,10 @@ services:
|
|||
volumes:
|
||||
- git_data:/aurweb/aur.git
|
||||
- ./cache:/cache
|
||||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
|
||||
pytest-mysql:
|
||||
image: aurweb:latest
|
||||
|
@ -211,6 +226,10 @@ services:
|
|||
- mariadb_run:/var/run/mysqld
|
||||
- git_data:/aurweb/aur.git
|
||||
- ./cache:/cache
|
||||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
|
||||
pytest-sqlite:
|
||||
image: aurweb:latest
|
||||
|
@ -225,6 +244,10 @@ services:
|
|||
- mariadb_run:/var/run/mysqld
|
||||
- git_data:/aurweb/aur.git
|
||||
- ./cache:/cache
|
||||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
depends_on:
|
||||
git:
|
||||
condition: service_healthy
|
||||
|
@ -247,6 +270,10 @@ services:
|
|||
- mariadb_run:/var/run/mysqld
|
||||
- git_data:/aurweb/aur.git
|
||||
- ./cache:/cache
|
||||
- ./aurweb:/aurweb/aurweb
|
||||
- ./migrations:/aurweb/migrations
|
||||
- ./test:/aurweb/test
|
||||
- ./web:/aurweb/web
|
||||
|
||||
volumes:
|
||||
mariadb_run: {} # Share /var/run/mysqld/mysqld.sock
|
||||
|
|
Loading…
Add table
Reference in a new issue