dimanche 25 mars 2018

Linux blocking access to docker port

I would deploy my SF4 app on VPS. It's running other Symfony app, but in normal way without Docker. I prepared docker build, php-mysql-nginx-kibana, it is working on my MacOS HS. I pushed it to VPS and I can't access nginx.

root@bike:~/docker-symfony# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1363/sshd       
tcp        0      0 0.0.0.0:1000            0.0.0.0:*               LISTEN      1526/ajenti-panel -
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      1400/mysqld     
tcp6       0      0 :::22                   :::*                    LISTEN      1363/sshd       
tcp6       0      0 :::888                  :::*                    LISTEN      7903/apache2    
tcp6       0      0 :::800                  :::*                    LISTEN      31707/docker-proxy
tcp6       0      0 :::810                  :::*                    LISTEN      31894/docker-proxy
tcp6       0      0 :::80                   :::*                    LISTEN      7903/apache2 

On port 800 is app which I want share, so I access IP:800 and I am getting

ERR_CONNECTION_REFUSED

root@bike:~/docker-symfony# docker-compose ps
        Name                       Command               State               Ports              
-----------------------------------------------------------------------------------------------
dockersymfony_db_1      docker-entrypoint.sh mysqld      Up      3306/tcp                       
dockersymfony_elk_1     /usr/bin/supervisord -n -c ...   Up      80/tcp, 0.0.0.0:810->800/tcp   
dockersymfony_nginx_1   nginx                            Up      4430/tcp, 0.0.0.0:800->800/tcp 
dockersymfony_php_1     docker-php-entrypoint php-fpm    Up      9000/tcp 

What I am doing wrong? VPS is Ubuntu 16.04.




Aucun commentaire:

Enregistrer un commentaire