2024-10-27 21:07:36 -03:00
|
|
|
services:
|
|
|
|
|
myrient-search:
|
2024-10-27 22:26:21 -03:00
|
|
|
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
|
|
|
|
|
- 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
|
2024-11-14 10:01:10 -03:00
|
|
|
- EMULATOR_ENABLED=true
|
2025-01-28 20:14:19 -03:00
|
|
|
- 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=
|
2024-10-27 21:07:36 -03:00
|
|
|
volumes:
|
|
|
|
|
- ./data:/usr/src/app/data
|
2025-01-28 20:14:19 -03:00
|
|
|
depends_on:
|
2025-03-10 13:48:14 -03:00
|
|
|
postgres:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
elasticsearch:
|
|
|
|
|
condition: service_healthy
|
2025-01-28 20:14:19 -03:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
|
|
elasticsearch:
|
|
|
|
|
image: elasticsearch:8.17.1
|
|
|
|
|
environment:
|
|
|
|
|
- discovery.type=single-node
|
|
|
|
|
- xpack.security.enabled=false
|
2025-03-10 13:48:14 -03:00
|
|
|
- "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
|
2025-01-28 20:14:19 -03:00
|
|
|
deploy: # Remove if you have a lot of free memory
|
|
|
|
|
resources:
|
|
|
|
|
limits:
|
2025-03-10 13:48:14 -03:00
|
|
|
memory: 1GB
|
2025-01-28 20:14:19 -03:00
|
|
|
volumes:
|
|
|
|
|
- elasticsearch_data:/usr/share/elasticsearch/data
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
|
|
postgres:
|
2025-03-10 13:48:14 -03:00
|
|
|
image: postgres:16-alpine
|
2025-01-28 20:14:19 -03:00
|
|
|
environment:
|
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
|
POSTGRES_PASSWORD: this-is-a-secure-db-password
|
|
|
|
|
POSTGRES_DB: myrient
|
|
|
|
|
volumes:
|
|
|
|
|
- postgres_data:/var/lib/postgresql/data
|
2025-03-10 13:48:14 -03:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 5
|
|
|
|
|
start_period: 10s
|
2025-01-28 20:14:19 -03:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
elasticsearch_data:
|
|
|
|
|
postgres_data:
|