2024-09-15 17:44:53 +00:00
|
|
|
services:
|
|
|
|
fediblock-instance:
|
|
|
|
image: fediblock-instance
|
|
|
|
build: .
|
|
|
|
hostname: fediblock-instance
|
|
|
|
container_name: fediblock-instance
|
|
|
|
restart: always
|
|
|
|
user: node
|
2024-10-13 23:54:16 +00:00
|
|
|
cpus: "0.7"
|
2024-09-28 00:15:08 +00:00
|
|
|
mem_limit: "1g"
|
|
|
|
memswap_limit: "1g"
|
2024-09-15 17:44:53 +00:00
|
|
|
ports:
|
|
|
|
- "4000:4000"
|
|
|
|
depends_on:
|
|
|
|
- fediblock-mongodb
|
|
|
|
- fediblock-elasticsearch
|
|
|
|
networks:
|
|
|
|
fediblocknet:
|
|
|
|
|
|
|
|
fediblock-mongodb:
|
|
|
|
image: mongo:4.4.28
|
|
|
|
hostname: fediblock-mongodb
|
|
|
|
container_name: fediblock-mongodb
|
|
|
|
restart: always
|
|
|
|
command: --wiredTigerCacheSizeGB 0.5
|
|
|
|
volumes:
|
|
|
|
- ./mongodb:/data/db
|
|
|
|
networks:
|
|
|
|
fediblocknet:
|
|
|
|
|
|
|
|
fediblock-elasticsearch:
|
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.2-amd64
|
|
|
|
hostname: fediblock-elasticsearch
|
|
|
|
container_name: fediblock-elasticsearch
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- node.name=fediblock-elasticsearch
|
|
|
|
- bootstrap.memory_lock=true
|
|
|
|
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
|
|
|
- xpack.security.enabled=false
|
|
|
|
- indices.id_field_data.enabled=true
|
|
|
|
- discovery.type=single-node
|
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
nofile:
|
|
|
|
soft: 65535
|
|
|
|
hard: 65535
|
|
|
|
volumes:
|
|
|
|
- ./elasticsearch-data:/usr/share/elasticsearch/data
|
|
|
|
expose:
|
|
|
|
- 9200
|
|
|
|
networks:
|
|
|
|
fediblocknet:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
fediblocknet:
|