mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
Add Argilla blueprint with Docker Compose and configuration files
- Introduced Docker Compose setup for Argilla service, including web, worker, Elasticsearch, PostgreSQL, and Redis components. - Added logo for Argilla. - Created template.toml for Argilla with default variables for configuration.
This commit is contained in:
parent
a4118655ef
commit
c0218e8e2e
77
blueprints/argilla/docker-compose.yml
Normal file
77
blueprints/argilla/docker-compose.yml
Normal file
@ -0,0 +1,77 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
argilla-web:
|
||||
image: argilla/argilla-server:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 6900
|
||||
environment:
|
||||
- ARGILLA_HOME_PATH=/var/lib/argilla
|
||||
- ARGILLA_ELASTICSEARCH=http://argilla-elasticsearch:9200
|
||||
- ARGILLA_DATABASE_URL=postgresql+asyncpg://postgres:${DB_PASSWORD}@argilla-db:5432/argilla
|
||||
- ARGILLA_REDIS_URL=redis://:${REDIS_PASSWORD}@argilla-redis:6379/0
|
||||
- USERNAME=${LOGIN_USERNAME}
|
||||
- PASSWORD=${LOGIN_PASSWORD}
|
||||
- API_KEY=argilla.apikey
|
||||
- WORKSPACE=default
|
||||
volumes:
|
||||
- argilladata:/var/lib/argilla
|
||||
depends_on:
|
||||
- argilla-elasticsearch
|
||||
- argilla-db
|
||||
- argilla-redis
|
||||
|
||||
argilla-worker:
|
||||
image: argilla/argilla-server:latest
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- BACKGROUND_NUM_WORKERS=2
|
||||
- ARGILLA_HOME_PATH=/var/lib/argilla
|
||||
- ARGILLA_ELASTICSEARCH=http://argilla-elasticsearch:9200
|
||||
- ARGILLA_DATABASE_URL=postgresql+asyncpg://postgres:${DB_PASSWORD}@argilla-db:5432/argilla
|
||||
- ARGILLA_REDIS_URL=redis://:${REDIS_PASSWORD}@argilla-redis:6379/0
|
||||
volumes:
|
||||
- argilladata:/var/lib/argilla
|
||||
command: python -m argilla_server worker --num-workers ${BACKGROUND_NUM_WORKERS}
|
||||
depends_on:
|
||||
- argilla-elasticsearch
|
||||
- argilla-db
|
||||
- argilla-redis
|
||||
|
||||
argilla-elasticsearch:
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch:8.12.2
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- node.name=elasticsearch
|
||||
- cluster.name=es-argilla-local
|
||||
- discovery.type=single-node
|
||||
- ES_JAVA_OPTS=-Xms512m -Xmx512m
|
||||
- cluster.routing.allocation.disk.threshold_enabled=false
|
||||
- xpack.security.enabled=false
|
||||
volumes:
|
||||
- elasticdata:/usr/share/elasticsearch/data
|
||||
|
||||
argilla-db:
|
||||
image: postgres:15-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
- POSTGRES_DB=argilla
|
||||
volumes:
|
||||
- dbdata:/var/lib/postgresql/data
|
||||
|
||||
argilla-redis:
|
||||
image: redis:7-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
||||
command: redis-server --requirepass ${REDIS_PASSWORD}
|
||||
volumes:
|
||||
- redisdata:/data
|
||||
|
||||
volumes:
|
||||
argilladata: {}
|
||||
elasticdata: {}
|
||||
dbdata: {}
|
||||
redisdata: {}
|
12
blueprints/argilla/logo.svg
Normal file
12
blueprints/argilla/logo.svg
Normal file
@ -0,0 +1,12 @@
|
||||
<svg width="481" height="252" viewBox="0 0 481 252" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M125.336 251.397C194.557 251.397 250.671 195.216 250.671 125.913C250.671 56.6109 194.557 0.430069 125.336 0.430069C56.1147 0.430069 0 56.6109 0 125.913C0 195.216 56.1147 251.397 125.336 251.397Z" fill="url(#paint0_linear_0_1)"/>
|
||||
<path d="M479.93 251.397C342.032 251.397 229.83 139.062 229.83 1.00175H317.193C317.193 91.0411 390.282 164.216 480.215 164.216V251.397H479.93Z" fill="#F8C0A7"/>
|
||||
<defs>
|
||||
<linearGradient id="paint0_linear_0_1" x1="55.414" y1="60.2073" x2="211.749" y2="206.798" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0.0151877" stop-color="#FF675F"/>
|
||||
<stop offset="1" stop-color="#F73D3D"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
</svg>
|
||||
|
||||
|
After Width: | Height: | Size: 751 B |
19
blueprints/argilla/template.toml
Normal file
19
blueprints/argilla/template.toml
Normal file
@ -0,0 +1,19 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
login_username = "${username}"
|
||||
login_password = "${password:8}"
|
||||
db_password = "${password:16}"
|
||||
redis_password = "${password:16}"
|
||||
|
||||
[config]
|
||||
[[config.domains]]
|
||||
serviceName = "argilla-web"
|
||||
port = 6900
|
||||
host = "${main_domain}"
|
||||
|
||||
[config.env]
|
||||
LOGIN_USERNAME = "${login_username}"
|
||||
LOGIN_PASSWORD = "${login_password}"
|
||||
DB_PASSWORD = "${db_password}"
|
||||
REDIS_PASSWORD = "${redis_password}"
|
||||
BACKGROUND_NUM_WORKERS = "2"
|
Loading…
Reference in New Issue
Block a user