59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
services:
|
|
fediblock-instance:
|
|
image: fediblock-instance
|
|
build: .
|
|
hostname: fediblock-instance
|
|
container_name: fediblock-instance
|
|
restart: always
|
|
user: node
|
|
cpus: "0.7"
|
|
mem_limit: "1g"
|
|
memswap_limit: "1g"
|
|
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:
|