How to access another port container? #3892
Replies: 2 comments 2 replies
-
|
Hi @edikurniawan-dev! I'm Dosu and I’m helping the dokploy team. The issue is with your Docker Compose configuration. In Dokploy, you should use Here's how to fix it: 1. Update your docker-compose.yml: services:
php:
build: .
expose:
- "80"
volumes:
- .:/var/www/html
depends_on:
- db
db:
image: mysql:5.7
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- mysql_data:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
expose:
- "80"
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
depends_on:
- db
volumes:
mysql_data:2. Configure domains in Dokploy:
Note that phpMyAdmin's default image listens on port 80, not 81 (unless you specifically configure To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
Idk, but try rebuilding deploying to refresh the reverse proxy config? Im a noob so idk, it worked for me once |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I created an application and have a simple docker compose configuration below.
I added the domain web.domain.com with port 80 and web-pma.domain.com with port 81.
When I access web.domain.com, it works fine and displays the main website, but I can't access web-pma.domain.com with a bad gateway message. How can I access phpMyAdmin?
Beta Was this translation helpful? Give feedback.
All reactions