monolith/legacy/docker-compose.yml

41 lines
977 B
YAML
Raw Permalink Normal View History

2022-07-28 18:25:15 +00:00
version: "2"
2022-07-28 18:21:08 +00:00
services:
app:
2022-07-29 21:22:22 +00:00
image: pathogen/threshold:latest
build: ./docker
2022-07-28 18:21:08 +00:00
volumes:
- ${PORTAINER_GIT_DIR}:/code
- ${THRESHOLD_CONFIG_DIR}:/code/conf/live
#- ${THRESHOLD_TEMPLATE_DIR}:/code/conf/templates
- ${THRESHOLD_CERT_DIR}:/code/conf/cert
2022-07-28 18:21:08 +00:00
ports:
- "${THRESHOLD_LISTENER_PORT}:${THRESHOLD_LISTENER_PORT}"
- "${THRESHOLD_RELAY_PORT}:${THRESHOLD_RELAY_PORT}"
- "${THRESHOLD_API_PORT}:${THRESHOLD_API_PORT}"
env_file:
- .env
2022-07-28 18:21:08 +00:00
# for development
extra_hosts:
- "host.docker.internal:host-gateway"
volumes_from:
- tmp
2022-07-28 18:21:08 +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:
2022-07-29 21:22:22 +00:00
- ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf
2022-07-28 18:21:08 +00:00
volumes_from:
- tmp
networks:
default:
external:
name: pathogen