77 lines
1.6 KiB
YAML
77 lines
1.6 KiB
YAML
version: "2"
|
|
|
|
services:
|
|
app:
|
|
image: pathogen/monolith:latest
|
|
build: ./docker
|
|
volumes:
|
|
- ${PORTAINER_GIT_DIR}:/code
|
|
env_file:
|
|
- ../stack.env
|
|
volumes_from:
|
|
- tmp
|
|
depends_on:
|
|
- 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:
|
|
- ../stack.env
|
|
volumes_from:
|
|
- tmp
|
|
|
|
db:
|
|
image: manticoresearch/manticore:dev
|
|
restart: always
|
|
ports:
|
|
- 9308
|
|
- 9312
|
|
- 9306
|
|
ulimits:
|
|
nproc: 65535
|
|
nofile:
|
|
soft: 65535
|
|
hard: 65535
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
environment:
|
|
- MCL=1
|
|
volumes:
|
|
- /opt/docker/pathogen/monolith/prod:/var/lib/manticore
|
|
- ${PORTAINER_GIT_DIR}/docker/manticore.conf:/etc/manticoresearch/manticore.conf
|
|
|
|
|
|
tmp:
|
|
image: busybox
|
|
command: chmod -R 777 /var/run/redis
|
|
ulimits:
|
|
nproc: 65535
|
|
nofile:
|
|
soft: 65535
|
|
hard: 65535
|
|
volumes:
|
|
- /var/run/redis
|
|
|
|
redis:
|
|
image: redis
|
|
command: redis-server /etc/redis.conf
|
|
volumes:
|
|
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
|
|
volumes_from:
|
|
- tmp
|
|
|
|
networks:
|
|
default:
|
|
external:
|
|
name: pathogen |