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 external: false
services: services:
memcached: redis:
image: memcached:1.6.17 image: redis:7.0.8-alpine3.17
restart: always restart: always
networks: networks:
- yopass - yopass
expose: volumes:
- "11211" - redis:/data
yopass: yopass:
image: jhaals/yopass:11.4.6 image: jhaals/yopass:11.4.6
restart: always restart: always
command: "--memcached=memcached:11211 --port 80" command: "--database redis --redis redis://redis:6379/0 --port 8080"
networks: networks:
- yopass - yopass
ports: ports:
- "8007:80" - "8007:8080"
depends_on: depends_on:
- memcached - redis
volumes:
redis: