Add: AURCache stack
This commit is contained in:
parent
4d615cbed3
commit
15ce59fbe1
2 changed files with 47 additions and 0 deletions
36
Docker/Docker-Compose/AURCache/docker-compose.yml
Normal file
36
Docker/Docker-Compose/AURCache/docker-compose.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
services:
|
||||||
|
aurcache:
|
||||||
|
image: ghcr.io/lukas-heiligenbrunner/aurcache:latest
|
||||||
|
ports:
|
||||||
|
- "${REPO_PORT:-8080}:8080" # Repository
|
||||||
|
- "${WEBUI_PORT:-8081}:8081" # Frontend
|
||||||
|
volumes:
|
||||||
|
- ${REPO_PATH:-./repo}:/app/repo
|
||||||
|
- ${BUILD_CACHE_PATH:}
|
||||||
|
privileged: true
|
||||||
|
environment:
|
||||||
|
- DB_TYPE=POSTGRESQL
|
||||||
|
- DB_USER=aurcache
|
||||||
|
- DB_PWD=${DB_PASSWORD:-password}
|
||||||
|
- DB_HOST=dbhost
|
||||||
|
- BUILD_ARTIFACT_DIR=${BUILD_CACHE_PATH:-./build_cache}
|
||||||
|
networks:
|
||||||
|
aurcache_network:
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
aurcache_database:
|
||||||
|
image: postgres:16
|
||||||
|
volumes:
|
||||||
|
- ${DB_PATH:-./aurcache/db}:/var/lib/postgresql/data
|
||||||
|
environment:
|
||||||
|
- POSTGRES_PASSWORD=${DB_PASSWORD:-password}
|
||||||
|
- POSTGRES_USER=aurcache
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
aurcache_network:
|
||||||
|
aliases:
|
||||||
|
- "dbhost"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
aurcache_network:
|
||||||
|
driver: bridge
|
11
Docker/Docker-Compose/AURCache/env-sample
Normal file
11
Docker/Docker-Compose/AURCache/env-sample
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# Database password
|
||||||
|
DB_PASSWORD="superpassword123"
|
||||||
|
|
||||||
|
# Path to where the database will be stored
|
||||||
|
DB_PATH=
|
||||||
|
|
||||||
|
# Path to where the built packages will be stored
|
||||||
|
REPO_PATH=
|
||||||
|
|
||||||
|
# Path for the build atifact cache
|
||||||
|
BUILD_CACHE_PATH=
|
Loading…
Add table
Reference in a new issue