source: OpenRLabs-Git/deploy/rlabs-docker/web2py-rlabs/docker/stack/web2py-tornado-nginx/README.md

main
Last change on this file was 42bd667, checked in by David Fuertes <dfuertes@…>, 4 years ago

Historial Limpio

  • Property mode set to 100755
File size: 1000 bytes
Line 
1# Start Service
2        systemctl start docker
3
4# Docker
5        cd /Docker/App/web2py-tornado-nginx
6        chmod 775 run.sh
7        ./run.sh
8
9# Docker Compose
10        pip install docker-compose
11        cd /Docker/App/web2py-tornado-nginx
12        docker-compose up -d
13        docker-compose ps
14        docker network ls
15        docker network inspect root_default
16        docker volume ls
17        docker volume inspect root_applications
18
19# Docker Stack
20        docker swarm init --advertise-addr $(hostname -i)
21        docker stack deploy -c docker-compose.yml web2py-tornado-nginx
22        docker stack ls
23        docker stack ps web2py-tornado-nginx
24        docker stack services web2py-tornado-nginx
25
26# Shell (Copy the content of the file into this scaffolding shell and replace the variable text $ with \$ )
27cat << EOF > docker-compose.yml
28
29EOF
30cat docker-compose.yml
31
32cat << EOF > run.sh
33
34EOF
35cat run.sh
36
37cat << EOF > w2p.conf
38
39EOF
40cat w2p.conf
41
42cat << EOF > web2py-nginx
43
44EOF
45cat web2py-nginx
46
47cat << EOF > web2py-tornado
48
49EOF
50cat web2py-tornado
51
52chmod 755 run.sh
53./run.sh
54
55docker-compose up -d
56docker-compose ps
Note: See TracBrowser for help on using the repository browser.