fediblock-instance/docker-compose.yml
ale e0fae7a6b4
All checks were successful
continuous-integration/drone/tag Build is passing
initial commit
2024-09-15 19:44:53 +02:00

59 lines
1.4 KiB
YAML

version: '3'
services:
fediblock-instance:
# image: registry.gitlab.com/manalejandro/fediblock-instance/fediblock-instance:latest
image: fediblock-instance
build: .
hostname: fediblock-instance
container_name: fediblock-instance
restart: always
user: node
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: