Files
Myrient-Search-Engine/docker-compose.yml

79 lines
2.2 KiB
YAML
Raw Normal View History

2024-10-27 21:07:36 -03:00
services:
myrient-search:
image: ghcr.io/alexankitty/myrient-search-engine:latest
2024-10-27 21:07:36 -03:00
ports:
- "8062:8062"
environment:
- PORT=8062
- BIND_ADDRESS=0.0.0.0
- FORCE_FILE_REBUILD=0
- FORCE_METADATA_RESYNC=0
- FORCE_DB_OPTIMIZE=0
2024-10-27 21:07:36 -03:00
- DEBUG=0
2025-05-29 17:58:34 -06:00
- HOSTNAME=myrient.mahou.one
2024-10-27 21:07:36 -03:00
- NODE_ENV=production
- MAX_JOB_QUEUE=1000
- MAX_FETCH_JOBS=1000
- INSTANCE_NAME=Myrient
- EMULATOR_ENABLED=true
- DB_KEYWORD_OPTIMIZER=0
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=myrient
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=this-is-a-secure-db-password
- ELASTICSEARCH_URL=http://elasticsearch:9200
2025-05-27 08:54:26 -06:00
- TWITCH_CLIENT_ID=
- TWITCH_CLIENT_SECRET=
2025-10-18 05:05:04 -03:00
- AI_ENABLED=true
- AI_API_KEY=gsk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- AI_API_URL=https://api.groq.com/openai/v1/chat/completions
- AI_MODEL=openai/gpt-oss-120b
2024-10-27 21:07:36 -03:00
volumes:
- ./data:/usr/src/app/data
depends_on:
postgres:
condition: service_healthy
elasticsearch:
condition: service_healthy
restart: unless-stopped
elasticsearch:
image: elasticsearch:8.17.1
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
healthcheck:
test: ["CMD-SHELL", "curl -s http://localhost:9200/_cluster/health | grep -q '\"status\":\"green\"\\|\"status\":\"yellow\"'"]
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
deploy: # Remove if you have a lot of free memory
resources:
limits:
memory: 1GB
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
restart: unless-stopped
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: this-is-a-secure-db-password
POSTGRES_DB: myrient
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
volumes:
elasticsearch_data:
postgres_data: