From 19f7173ea6ddadb4ddf807fab29acfc4533f523a Mon Sep 17 00:00:00 2001 From: Matthew Lopez <73856503+MatthewL246@users.noreply.github.com> Date: Sun, 28 Apr 2024 13:55:28 -0400 Subject: [PATCH] Set up Redis Commander --- README.md | 1 + compose.yml | 15 +++++++++++++++ environment/redis-commander.env | 3 +++ 3 files changed, 19 insertions(+) create mode 100644 environment/redis-commander.env diff --git a/README.md b/README.md index 81ac455..7c44760 100644 --- a/README.md +++ b/README.md @@ -311,6 +311,7 @@ that it will be overwritten with a save that doesn't match the name. | [MailDev](https://maildev.github.io/maildev/) | SMTP server used to test sending emails from the account server. Use this to view your PNID email verification code. | Open in your browser with the container running. | | [PostgreSQL](https://www.postgresql.org/) | Database used by the Friend List server to store friendships. | Use Adminer (see below) to view the databases and run SQL scripts. You can also download the [pgAdmin GUI](https://www.pgadmin.org/) and connect to `127.0.0.1:5432` to perform advanced administration tasks. | | [Adminer](https://www.adminer.org/) | Web GUI for database administration, used for Postgres. | Open in your browser with the container running. | +| [Redis Commander](https://joeferner.github.io/redis-commander/) | Web GUI for Redis database administration. | Open in your browser with the container running. | Check the `secrets.txt` file in the root of the repository to find the usernames and randomly-generated passwords needed to authenticate with the servers. diff --git a/compose.yml b/compose.yml index a6b3456..6124b32 100644 --- a/compose.yml +++ b/compose.yml @@ -135,6 +135,21 @@ services: dns: 172.20.0.200 command: redis-server --save 60 1 --appendonly yes + redis-commander: + image: ghcr.io/joeferner/redis-commander:latest + depends_on: + - coredns-internal + - redis + restart: unless-stopped + ports: + # Web interface + - 127.0.0.1:8086:8086 + networks: + internal: + dns: 172.20.0.200 + env_file: + - ./environment/redis-commander.env + # TODO: MailDev appears to be unmaintained and has security vulnerabilities. # Find an alternative. MailCatcher doesn't support persistance, and MailHog # also seems unmaintained. diff --git a/environment/redis-commander.env b/environment/redis-commander.env new file mode 100644 index 0000000..8b5b096 --- /dev/null +++ b/environment/redis-commander.env @@ -0,0 +1,3 @@ +PORT=8086 +REDIS_HOST=redis +REDIS_PORT=6379