Set up Redis Commander

This commit is contained in:
Matthew Lopez
2024-04-28 13:55:28 -04:00
parent 7b7cec4d8d
commit 19f7173ea6
3 changed files with 19 additions and 0 deletions

View File

@@ -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 <http://127.0.0.1:8084> 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 <http://127.0.0.1:8085> in your browser with the container running. |
| [Redis Commander](https://joeferner.github.io/redis-commander/) | Web GUI for Redis database administration. | Open <http://127.0.0.1:8086> 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.

View File

@@ -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.

View File

@@ -0,0 +1,3 @@
PORT=8086
REDIS_HOST=redis
REDIS_PORT=6379