overleaf/overleafredis/compose.yaml

31 lines
663 B
YAML
Raw Normal View History

2024-07-13 04:02:40 +02:00
# docker network create overleaf-network
services:
overleafredis:
image: "redis:6.2-alpine"
container_name: overleafredis
hostname: overleafredis
restart: always
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
start_period: 20s
interval: 30s
retries: 5
timeout: 3s
command: --save 60 1 --loglevel warning
volumes:
- overleaf_redis:/data
- /var/run/docker.sock:/var/run/docker.sock
expose:
- 6379
networks:
- overleaf-network
2024-07-21 16:41:42 +02:00
environment:
REDIS_AOF_PERSISTENCE: "true"
2024-07-13 04:02:40 +02:00
volumes:
overleaf_redis:
networks:
overleaf-network:
external: true