Enable data persistency

This commit is contained in:
BatchAccount 1001 2023-01-21 22:01:24 +01:00
parent 72d6ba03e2
commit ad16a06c6f
1 changed files with 10 additions and 7 deletions

View File

@ -5,21 +5,24 @@ networks:
external: false
services:
memcached:
image: memcached:1.6.17
redis:
image: redis:7.0.8-alpine3.17
restart: always
networks:
- yopass
expose:
- "11211"
volumes:
- redis:/data
yopass:
image: jhaals/yopass:11.4.6
restart: always
command: "--memcached=memcached:11211 --port 80"
command: "--database redis --redis redis://redis:6379/0 --port 8080"
networks:
- yopass
ports:
- "8007:80"
- "8007:8080"
depends_on:
- memcached
- redis
volumes:
redis: