39 lines
902 B
YAML
39 lines
902 B
YAML
name: AURCache-Stack
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 172.22.16.0/24
|
|
gateway: 172.22.16.1
|
|
|
|
services:
|
|
main:
|
|
image: ghcr.io/lukas-heiligenbrunner/aurcache:v0.3.1
|
|
ports:
|
|
- "${REPO_PORT:-8080}:8080" # Repository
|
|
- "${WEBUI_PORT:-8081}:8081" # Frontend
|
|
volumes:
|
|
- ${REPO_PATH:-./repo}:/app/repo
|
|
privileged: true
|
|
environment:
|
|
- DB_TYPE=POSTGRESQL
|
|
- DB_USER=aurcache
|
|
- DB_PWD=${DB_PASSWORD:-password}
|
|
- DB_HOST=dbhost
|
|
- CPU_LIMIT=${CPU_LIMIT:-0}
|
|
restart: unless-stopped
|
|
|
|
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:
|
|
default:
|
|
aliases:
|
|
- "dbhost"
|