feat(labrinth): add config to run it with Compose, alongside services (#4153)

This commit is contained in:
Alejandro González
2025-08-09 23:04:31 +02:00
committed by GitHub
parent 58645b9ba9
commit 80eb297284
3 changed files with 159 additions and 0 deletions

View File

@@ -58,7 +58,35 @@ services:
interval: 3s
timeout: 5s
retries: 3
labrinth:
profiles:
- with-labrinth
build:
context: .
dockerfile: ./apps/labrinth/Dockerfile
container_name: labrinth
ports:
- '8000:8000'
env_file: ./apps/labrinth/.env.docker-compose
volumes:
- labrinth-cdn-data:/tmp/modrinth
depends_on:
postgres_db:
condition: service_healthy
meilisearch:
condition: service_healthy
redis:
condition: service_healthy
clickhouse:
condition: service_healthy
mail:
condition: service_healthy
develop:
watch:
- path: ./apps/labrinth
action: rebuild
volumes:
meilisearch-data:
db-data:
redis-data:
labrinth-cdn-data: