monolith/docker/docker-compose.prod.yml

87 lines
1.8 KiB
YAML
Raw Normal View History

2022-09-18 12:04:08 +00:00
version: "2.2"
services:
app:
image: pathogen/monolith:latest
2022-09-21 11:08:29 +00:00
container_name: monolith
2022-11-22 21:15:19 +00:00
build: ${PORTAINER_GIT_DIR}/docker
2022-11-22 20:35:13 +00:00
volumes:
2022-11-22 21:15:19 +00:00
- ${PORTAINER_GIT_DIR}:/code
env_file:
2022-09-05 06:20:30 +00:00
- ../stack.env
2022-11-22 20:15:02 +00:00
networks:
- default
- pathogen
- elastic
2022-09-04 20:29:00 +00:00
threshold:
image: pathogen/threshold:latest
2022-09-21 11:08:29 +00:00
container_name: threshold
2022-11-22 07:20:27 +00:00
build: ../legacy/docker
volumes:
2022-11-22 21:15:19 +00:00
- ${PORTAINER_GIT_DIR}:/code
- ${THRESHOLD_CONFIG_DIR}:/code/legacy/conf/live
2022-10-21 06:20:30 +00:00
#- ${THRESHOLD_TEMPLATE_DIR}:/code/conf/templates
- ${THRESHOLD_CERT_DIR}:/code/legacy/conf/cert
volumes_from:
- tmp
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-11-22 20:15:02 +00:00
networks:
- default
2022-10-21 10:14:51 +00:00
ssdb:
image: tsl0922/ssdb
container_name: ssdb_monolith
ports:
- "1289:1289"
environment:
- SSDB_PORT=1289
2022-11-22 20:15:02 +00:00
networks:
- default
tmp:
image: busybox
container_name: tmp_monolith
command: chmod -R 777 /var/run/socks
volumes:
- /var/run/socks
redis:
image: redis
container_name: redis_monolith
command: redis-server /etc/redis.conf
ulimits:
nproc: 65535
nofile:
soft: 65535
hard: 65535
volumes:
2022-11-22 07:20:27 +00:00
- ./redis.conf:/etc/redis.conf
- redis_data:/data
volumes_from:
- tmp
healthcheck:
test: "redis-cli -s /var/run/socks/redis.sock ping"
interval: 2s
timeout: 2s
retries: 15
networks:
2022-11-22 20:15:02 +00:00
default:
driver: bridge
pathogen:
external: true
elastic:
external: true
volumes:
redis_data: