monolith/docker-compose.yml

87 lines
1.8 KiB
YAML
Raw Normal View History

version: "2"
services:
app:
image: pathogen/monolith:latest
build: ./docker
volumes:
- ${PORTAINER_GIT_DIR}:/code
env_file:
- .env
volumes_from:
2022-09-04 12:47:32 +00:00
- tmp
depends_on:
2022-09-04 18:44:25 +00:00
- db
threshold:
image: pathogen/threshold:latest
build: ./legacy/docker
volumes:
- ${PORTAINER_GIT_DIR}:/code
- ${THRESHOLD_CONFIG_DIR}:/code/legacy/conf/live
#- ${THRESHOLD_TEMPLATE_DIR}:/code/conf/templates
- ${THRESHOLD_CERT_DIR}:/code/legacy/conf/cert
ports:
- "${THRESHOLD_LISTENER_PORT}:${THRESHOLD_LISTENER_PORT}"
- "${THRESHOLD_RELAY_PORT}:${THRESHOLD_RELAY_PORT}"
- "${THRESHOLD_API_PORT}:${THRESHOLD_API_PORT}"
env_file:
- .env
# for development
extra_hosts:
- "host.docker.internal:host-gateway"
volumes_from:
- tmp
depends_on:
- tmp
- redis
2022-09-04 12:47:32 +00:00
db:
2022-09-12 07:43:18 +00:00
#image: pathogen/manticore:kibana
image: manticoresearch/manticore:latest
2022-09-12 07:43:18 +00:00
#build:
# context: ./docker/manticore
# args:
# DEV: 1
2022-09-04 12:47:32 +00:00
restart: always
2022-09-04 20:29:00 +00:00
ports:
2022-09-04 12:47:32 +00:00
- 9308
- 9312
- 9306
2022-09-04 12:47:32 +00:00
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
memlock:
soft: -1
hard: -1
environment:
- MCL=1
volumes:
- ./docker/data:/var/lib/manticore
2022-09-05 06:20:30 +00:00
- ./docker/manticore.conf:/etc/manticoresearch/manticore.conf
tmp:
image: busybox
command: chmod -R 777 /var/run/redis
volumes:
- /var/run/redis
redis:
2022-09-04 18:44:25 +00:00
image: redis
command: redis-server /etc/redis.conf
2022-09-07 06:20:30 +00:00
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
2022-09-04 18:44:25 +00:00
volumes:
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
volumes_from:
- tmp
networks:
default:
external:
name: pathogen