-
Notifications
You must be signed in to change notification settings - Fork 416
/
Copy pathdocker-compose.yaml
91 lines (84 loc) · 2.55 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
x-common-variables: &common-variables
ARGILLA_HOME_PATH: /var/lib/argilla
ARGILLA_ELASTICSEARCH: http://elasticsearch:9200
ARGILLA_DATABASE_URL: postgresql+asyncpg://postgres:postgres@postgres:5432/argilla
ARGILLA_REDIS_URL: redis://redis:6379/0
services:
argilla:
image: argilla/argilla-server:latest
restart: unless-stopped
ports:
- "6900:6900"
environment:
<<: *common-variables
USERNAME: argilla
PASSWORD: 12345678
API_KEY: argilla.apikey
WORKSPACE: default
# Uncomment the following line to reindex Argilla datasets into the search engine when starting up
# REINDEX_DATASETS: 1
# Opt-out for telemetry https://huggingface.co/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.send_telemetry
# HF_HUB_DISABLE_TELEMETRY: 1
# Opt-out for telemetry https://huggingface.co/docs/huggingface_hub/main/en/package_reference/utilities#huggingface_hub.utils.send_telemetry
# HF_HUB_OFFLINE: 1
networks:
- argilla
volumes:
# ARGILLA_HOME_PATH is used to define where Argilla will save it's application data.
# If you change ARGILLA_HOME_PATH value please copy that same value to argilladata volume too.
- argilladata:/var/lib/argilla
depends_on:
- postgres
- elasticsearch
- redis
worker:
image: argilla/argilla-server:latest
environment:
<<: *common-variables
BACKGROUND_NUM_WORKERS: 2
networks:
- argilla
depends_on:
- postgres
- elasticsearch
- redis
command: sh -c 'python -m argilla_server worker --num-workers $${BACKGROUND_NUM_WORKERS}'
postgres:
image: postgres:14
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: argilla
networks:
- argilla
volumes:
- postgresdata:/var/lib/postgresql/data
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.0
environment:
- ES_JAVA_OPTS=-Xms512m -Xmx512m -XX:UseSVE=0
- CLI_JAVA_OPTS=-XX:UseSVE=0
- node.name=elasticsearch
- cluster.name=es-argilla-local
- discovery.type=single-node
- cluster.routing.allocation.disk.threshold_enabled=false
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
networks:
- argilla
volumes:
- elasticdata:/usr/share/elasticsearch/data/
redis:
image: redis
networks:
- argilla
networks:
argilla:
driver: bridge
volumes:
argilladata:
elasticdata:
postgresdata: