So I am trying to setup my Wordpress container that I got from the catalog in rancher with some random available public port (here
Everything works as expected if I keep it as is. But as soon as I try to connect to my external mysql host nothing works any more and I am redirected to
:8080 away from
:9932 and I get
The mysql user is set up correctly and I have managed to launch a Wordpress container locally connecting to the same mysql database.
The logs in Rancher reveal nothing peculiar and suggest that everything is working correctly so I am all out of ideas. I have also tried using the Wordpress image from scratch resulting in the same issues.
Here is the docker-compose.yml: (node: im not linking the db container to the wordpress container)
version: '2' services: wordpress: image: wordpress environment: WORDPRESS_DB_USER: some_user WORDPRESS_DB_NAME: some_db_name WORDPRESS_DB_PASSWORD: some_db_password WORDPRESS_DB_HOST: some_db_host ports: - 9932:80/tcp db: image: mariadb environment: MYSQL_ROOT_PASSWORD: example
Funnily enough, if I use wrong mysql credentials I am not redirected and I get normal errors in the rancher log.