2022-09-18 12:04:08 +00:00
|
|
|
version: "2.2"
|
|
|
|
|
2022-09-02 21:30:45 +00:00
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: pathogen/monolith:latest
|
2022-09-21 11:08:29 +00:00
|
|
|
container_name: monolith
|
2022-09-02 21:30:45 +00:00
|
|
|
build: ./docker
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
|
|
|
env_file:
|
2022-09-05 06:20:30 +00:00
|
|
|
- ../stack.env
|
2022-09-02 21:30:45 +00:00
|
|
|
volumes_from:
|
2022-09-18 12:04:08 +00:00
|
|
|
- tmp
|
2022-09-04 20:29:00 +00:00
|
|
|
depends_on:
|
2022-10-11 10:16:24 +00:00
|
|
|
# broker:
|
|
|
|
# condition: service_started
|
|
|
|
# kafka:
|
|
|
|
# condition: service_healthy
|
2022-09-18 12:04:08 +00:00
|
|
|
tmp:
|
|
|
|
condition: service_started
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2022-09-04 20:29:00 +00:00
|
|
|
|
2022-09-07 06:20:30 +00:00
|
|
|
threshold:
|
|
|
|
image: pathogen/threshold:latest
|
2022-09-21 11:08:29 +00:00
|
|
|
container_name: threshold
|
2022-09-07 06:20:30 +00:00
|
|
|
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
|
2022-10-19 15:45:18 +00:00
|
|
|
# for development
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2022-09-07 06:20:30 +00:00
|
|
|
volumes_from:
|
2022-10-19 15:45:18 +00:00
|
|
|
- tmp
|
2022-09-18 12:04:08 +00:00
|
|
|
depends_on:
|
|
|
|
tmp:
|
|
|
|
condition: service_started
|
|
|
|
redis:
|
|
|
|
condition: service_healthy
|
2022-09-07 06:20:30 +00:00
|
|
|
|
2022-09-02 21:30:45 +00:00
|
|
|
tmp:
|
|
|
|
image: busybox
|
2022-10-19 15:45:18 +00:00
|
|
|
container_name: tmp_monolith
|
2022-09-02 21:30:45 +00:00
|
|
|
command: chmod -R 777 /var/run/redis
|
2022-09-18 12:04:08 +00:00
|
|
|
volumes:
|
|
|
|
- /var/run/redis
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis
|
2022-10-19 15:45:18 +00:00
|
|
|
container_name: redis_monolith
|
2022-09-18 12:04:08 +00:00
|
|
|
command: redis-server /etc/redis.conf
|
2022-09-07 06:20:30 +00:00
|
|
|
ulimits:
|
|
|
|
nproc: 65535
|
|
|
|
nofile:
|
|
|
|
soft: 65535
|
|
|
|
hard: 65535
|
2022-09-02 21:30:45 +00:00
|
|
|
volumes:
|
2022-09-18 12:04:08 +00:00
|
|
|
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
|
2022-10-04 19:26:58 +00:00
|
|
|
- redis_data:/data
|
2022-09-18 12:04:08 +00:00
|
|
|
volumes_from:
|
|
|
|
- tmp
|
|
|
|
healthcheck:
|
|
|
|
test: "redis-cli -s /var/run/redis/redis.sock ping"
|
|
|
|
interval: 2s
|
|
|
|
timeout: 2s
|
|
|
|
retries: 15
|
2022-09-02 21:30:45 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
2022-10-04 19:17:04 +00:00
|
|
|
name: pathogen
|
|
|
|
|
|
|
|
volumes:
|
2022-10-04 19:26:58 +00:00
|
|
|
redis_data: {}
|