2022-07-29 07:01:48 +00:00
|
|
|
version: "2"
|
|
|
|
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
image: pathogen/threshold
|
|
|
|
build: ./docker
|
|
|
|
volumes:
|
|
|
|
- ${PORTAINER_GIT_DIR}:/code
|
2022-07-29 07:31:01 +00:00
|
|
|
- ${THRESHOLD_CONFIG_DIR}:/code/conf/live
|
2022-07-29 07:35:56 +00:00
|
|
|
#- ${THRESHOLD_TEMPLATE_DIR}:/code/conf/templates
|
2022-07-29 07:31:01 +00:00
|
|
|
- ${THRESHOLD_CERT_DIR}:/code/conf/cert
|
2022-07-29 07:01:48 +00:00
|
|
|
ports:
|
|
|
|
- "${THRESHOLD_LISTENER_PORT}:${THRESHOLD_LISTENER_PORT}"
|
|
|
|
- "${THRESHOLD_RELAY_PORT}:${THRESHOLD_RELAY_PORT}"
|
|
|
|
- "${THRESHOLD_API_PORT}:${THRESHOLD_API_PORT}"
|
|
|
|
env_file:
|
2022-07-29 07:11:37 +00:00
|
|
|
- ../stack.env
|
2022-07-29 07:01:48 +00:00
|
|
|
volumes_from:
|
|
|
|
- tmp
|
|
|
|
|
|
|
|
tmp:
|
|
|
|
image: busybox
|
|
|
|
command: chmod -R 777 /var/run/redis
|
|
|
|
volumes:
|
|
|
|
- /var/run/redis
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
command: redis-server /etc/redis.conf
|
|
|
|
volumes:
|
2022-07-29 07:48:30 +00:00
|
|
|
- ./redis.conf:/etc/redis.conf
|
2022-07-29 07:01:48 +00:00
|
|
|
volumes_from:
|
|
|
|
- tmp
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: pathogen
|