You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
146 lines
3.2 KiB
YAML
146 lines
3.2 KiB
YAML
version: "2.1"
|
|
networks:
|
|
internal_network:
|
|
services:
|
|
db:
|
|
restart: always
|
|
networks:
|
|
- internal_network
|
|
image: git.abderr.ovh/abderr/ambar-mongodb:2.1
|
|
environment:
|
|
- cacheSizeGB=2
|
|
volumes:
|
|
- /home/abderr/ambar/data/db:/data/db
|
|
expose:
|
|
- "27017"
|
|
es:
|
|
restart: always
|
|
networks:
|
|
- internal_network
|
|
image: land007/ambar-es:latest
|
|
expose:
|
|
- "9200"
|
|
environment:
|
|
- cluster.name=ambar-es
|
|
- ES_JAVA_OPTS=-Xms2g -Xmx2g
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
nofile:
|
|
soft: 65536
|
|
hard: 65536
|
|
cap_add:
|
|
- IPC_LOCK
|
|
volumes:
|
|
- /home/abderr/ambar/data/es:/usr/share/elasticsearch/data
|
|
rabbit:
|
|
restart: always
|
|
networks:
|
|
- internal_network
|
|
image: git.abderr.ovh/abderr/ambar-rabbit:2.1
|
|
hostname: rabbit
|
|
expose:
|
|
- "15672"
|
|
- "5672"
|
|
volumes:
|
|
- /home/abderr/ambar/data/rabbit:/var/lib/rabbitmq
|
|
redis:
|
|
restart: always
|
|
sysctls:
|
|
- net.core.somaxconn=1024
|
|
networks:
|
|
- internal_network
|
|
image: git.abderr.ovh/abderr/ambar-redis:2.1
|
|
expose:
|
|
- "6379"
|
|
serviceapi:
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
rabbit:
|
|
condition: service_healthy
|
|
es:
|
|
condition: service_healthy
|
|
db:
|
|
condition: service_healthy
|
|
restart: always
|
|
networks:
|
|
- internal_network
|
|
image: git.abderr.ovh/abderr/ambar-serviceapi:2.1
|
|
expose:
|
|
- "8081"
|
|
environment:
|
|
- mongoDbUrl=mongodb://db:27017/ambar_data
|
|
- elasticSearchUrl=http://es:9200
|
|
- redisHost=redis
|
|
- redisPort=6379
|
|
- rabbitHost=amqp://rabbit
|
|
- langAnalyzer=ambar_en
|
|
- SLAO_HOSTNAME=ambar
|
|
- SLAO_API_KEY=
|
|
webapi:
|
|
depends_on:
|
|
serviceapi:
|
|
condition: service_healthy
|
|
restart: always
|
|
networks:
|
|
- internal_network
|
|
image: git.abderr.ovh/abderr/ambar-webapi:2.1
|
|
expose:
|
|
- "8080"
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
- uiLang=en
|
|
- mongoDbUrl=mongodb://db:27017/ambar_data
|
|
- elasticSearchUrl=http://es:9200
|
|
- redisHost=redis
|
|
- redisPort=6379
|
|
- serviceApiUrl=http://serviceapi:8081
|
|
- rabbitHost=amqp://rabbit
|
|
- SLAO_HOSTNAME=ambar
|
|
- SLAO_API_KEY=
|
|
frontend:
|
|
depends_on:
|
|
webapi:
|
|
condition: service_healthy
|
|
image: git.abderr.ovh/abderr/ambar-frontend:2.1
|
|
restart: always
|
|
networks:
|
|
- internal_network
|
|
ports:
|
|
- "80:80"
|
|
expose:
|
|
- "80"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- api=http://192.168.1.9:8080
|
|
- PORT=80
|
|
pipeline0:
|
|
depends_on:
|
|
serviceapi:
|
|
condition: service_healthy
|
|
image: git.abderr.ovh/abderr/ambar-pipeline:2.1
|
|
restart: always
|
|
networks:
|
|
- internal_network
|
|
environment:
|
|
- id=0
|
|
- api_url=http://serviceapi:8081
|
|
- rabbit_host=amqp://rabbit
|
|
LocalCrawler:
|
|
depends_on:
|
|
serviceapi:
|
|
condition: service_healthy
|
|
image: git.abderr.ovh/abderr/ambar-local-crawler:2.1
|
|
restart: always
|
|
networks:
|
|
- internal_network
|
|
expose:
|
|
- "8082"
|
|
environment:
|
|
- name=LocalCrawler
|
|
volumes:
|
|
- /home/abderr/data/docs:/usr/data
|