Files
kb-anhonesthost/src/content/partials/service-hostnames.mdx
T

12 lines
1.3 KiB
Plaintext
Raw Normal View History

2026-05-17 16:38:36 -07:00
Some applications need to connect to databases or caches. Use these hostnames from inside your site — they only resolve within your hosting container, so they don't work from your laptop.
| Service | Hostname | Default port | Notes |
| ----------- | ----------- | ------------ | -------------------------------------------------------------------------------- |
| MySQL | `mysql` | 3306 | Username, password, and database from the **MySQL Management** page. |
| PostgreSQL | `postgres` | 5432 | Username, password, and database from the **PostgreSQL** page. |
| Valkey | `valkey` | 6379 | Redis wire-compatible (phpredis, Predis, ioredis work unchanged). No password — the connection is network-isolated to your account. Enable on the **Valkey Cache** page first. |
2026-05-17 16:38:36 -07:00
For **email**, the mail server hostname is a per-server value (e.g. `mail01.cloud-hosting.io`) and is shown on the **Dashboard** page under Server Information.
**Connecting from your laptop?** Use the panel's **phpMyAdmin** (MySQL) or **Adminer** (PostgreSQL) for ad-hoc queries — direct external connections to these internal services are not exposed for security reasons.