I finally figure out how to to install Magento container into Swarm dockers cluster, and now I could access its URL, e.g. http://xxxagents.australiaeast.cloudapp.azure.com (port 80)
Then I got another issue: if I use docker-compose to install another container with Magento port number 83 (non-80), my web browser tells me page cannot be open.
Here is my yml script for that part:
magento:
image: 'bitnami/magento:latest'
environment:
- MAGENTO_HOST=xxxxagents.australiaeast.cloudapp.azure.com
- MARIADB_HOST=10.0.0.4
- MARIADB_PORT=3303
- APACHE_HTTP_PORT=83
ports:
- '83:83'
The host & port number has been successfully written into core_config_data table. Does anyone know why I cannot open via: http://xxxagents.australiaeast.cloudapp.azure.com:83 ?
Thanks a lot!