forked from jhaals/yopass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added memcached support for the new TTL feature (#32)
* Reworked the memcached-client to return a static TTL. Adapted the frontend to handle invalid TTLs and use the translation mechanism * Updated Docker deployment for memcached
- Loading branch information
1 parent
4c55588
commit f464d9b
Showing
5 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
32 changes: 21 additions & 11 deletions
32
deploy/docker-compose/insecure-memcached/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
version: "3.0" | ||
|
||
services: | ||
memcached: | ||
image: memcached | ||
restart: always | ||
expose: | ||
- "11211" | ||
|
||
yopass: | ||
image: jhaals/yopass | ||
image: TassiloPitrasch/yopass:latest | ||
container_name: yopass | ||
restart: always | ||
networks: | ||
- yopass_internal | ||
- yopass_external | ||
ports: | ||
- "127.0.0.1:80:80" | ||
command: "--memcached=memcached:11211 --port 80" | ||
- "80:80" | ||
command: "--database=memcached --memcached=yopass_memcached:11211 --port 80" | ||
|
||
memcached: | ||
image: memcached:latest | ||
container_name: yopass_memcached | ||
restart: always | ||
networks: | ||
- yopass_internal | ||
|
||
networks: | ||
yopass_internal: | ||
internal: true | ||
yopass_external: | ||
driver: bridge | ||
internal: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters