thanks again alex, when executed same like previous tested in https://labs.play-with-docker.com, return an error (acceptable i think because the link and port provided is work (shown web2py welcome apps) ) *error traceback* PING 172.25.0.23 (172.25.0.23): 56 data bytes
--- 172.25.0.23 ping statistics --- 1 packets transmitted, 0 packets received, 100% packet loss curl: (7) Failed to connect to 172.25.0.23 port 80: Host is unreachable is it normal or not? *1. w2p.conf* cat <<EOF > w2p.conf upstream gunicorn { #server 172.25.0.22:9005 fail_timeout=0; server w2pname:9005 fail_timeout=0; } server { #listen 172.25.0.23:80 default_server; listen nginxname:80 default_server; location / { try_files $uri @proxy_to_gunicorn; } location @proxy_to_gunicorn { proxy_set_header X-Real-IP $remote_addr; proxy_redirect off; proxy_set_header Host $host; proxy_pass http://gunicorn; } } EOF cat w2p.conf *4. run dockers in shell script* cat <<EOF > run.sh docker rm $(docker stop $(docker ps -a -q --filter ancestor=w2pnginx --format="{{.ID}}")) docker rm $(docker stop $(docker ps -a -q --filter ancestor=w2pguni --format="{{.ID}}")) docker network rm w2pnet #docker network create w2pnet docker network create --subnet=172.25.0.0/16 w2pnet docker build -t w2pguni -f guniDoc . docker run -d --net w2pnet -p 9005:9005 --hostname w2pname --ip 172.25.0.22 w2pguni sleep 2 ping -c1 -n 172.25.0.22 curl 172.25.0.22 curl -I 172.25.0.22:9005 docker build -t w2pnginx -f nginxDoc . docker run -d --net w2pnet --ip 172.25.0.23 w2pnginx sleep 2 ping -c1 -n 172.25.0.23 curl 172.25.0.23 curl -I 172.25.0.23 docker ps docker network ls docker network inspect w2pnet EOF cat run.sh thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.