mirror of
https://github.com/okxlin/appstore.git
synced 2026-09-23 08:01:00 +00:00
35 lines
893 B
YAML
35 lines
893 B
YAML
services:
|
|
dragonfly:
|
|
image: "docker.dragonflydb.io/dragonflydb/dragonfly:latest"
|
|
container_name: ${CONTAINER_NAME}
|
|
restart: unless-stopped
|
|
networks:
|
|
- 1panel-network
|
|
ports:
|
|
- "${PANEL_APP_PORT_HTTP}:6379"
|
|
environment:
|
|
- DFLY_requirepass=${DRAGONFLY_PASSWORD}
|
|
command:
|
|
- "--snapshot_cron=${DRAGONFLY_SNAPSHOT_CRON}"
|
|
- "--maxmemory=${DRAGONFLY_MAX_MEMORY}"
|
|
- "--proactor_threads=${DRAGONFLY_THREADS}"
|
|
volumes:
|
|
- "${APP_DATA_DIR}:/data"
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
stop_grace_period: 1m
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "REDISCLI_AUTH=$$DFLY_requirepass redis-cli -h 127.0.0.1 -p 6379 ping | grep -qx PONG"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
start_period: 20s
|
|
retries: 10
|
|
labels:
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
1panel-network:
|
|
external: true
|