2022-09-02 21:30:45 +00:00
|
|
|
version: "2"
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: pathogen/monolith:latest
|
|
|
|
build: ./docker
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
volumes_from:
|
|
|
|
- tmp
|
2022-09-04 20:29:00 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: manticoresearch/manticore
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 9308
|
|
|
|
- 9312
|
|
|
|
ulimits:
|
|
|
|
nproc: 65535
|
|
|
|
nofile:
|
|
|
|
soft: 65535
|
|
|
|
hard: 65535
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
environment:
|
|
|
|
- MCL=1
|
|
|
|
volumes:
|
|
|
|
- ./docker/data:/var/lib/manticore
|
2022-09-02 21:30:45 +00:00
|
|
|
|
|
|
|
tmp:
|
|
|
|
image: busybox
|
|
|
|
command: chmod -R 777 /var/run/redis
|
|
|
|
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
|