2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-04 20:14:56 +01:00

add webdis

This commit is contained in:
kev
2021-05-10 16:13:25 +08:00
parent c2719ee1aa
commit 97ea4e9e64
5 changed files with 69 additions and 30 deletions

View File

@@ -1,12 +1,22 @@
webdis:
image: anapsix/webdis
ports:
- "7379:7379"
environment:
- REDIS_HOST=x.x.x.x
- REDIS_PORT=6379
- REDIS_AUTH=null
- DATABASE=0
- HTTP_HOST=0.0.0.0
- HTTP_PORT=7379
restart: unless-stopped
version: "3.8"
services:
webdis:
image: vimagick/webdis
ports:
- "7379:7379"
volumes:
- ./data/webdis:/etc/webdis
depends_on:
- redis
restart: unless-stopped
redis:
image: redis:alpine
command: --save 900 1
ports:
- "127.0.0.1:6379:6379"
volumes:
- ./data/redis:/data
restart: unless-stopped