Skip to content

Commit e5d7c92

Browse files
committed
Update info around shared disk
1 parent 6c1e388 commit e5d7c92

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,19 @@ Now start your browser and load http://docker.chamilo.net.
3434

3535
If you want to use a more complex system with load balancing, you might want to try out the following suite of commands:
3636

37+
```
38+
docker run --name varwww -d ywarnier/varw
39+
```
40+
41+
This will provide a shared /var/www2 partition
42+
3743
```
3844
docker run --name mariadb -e MYSQL_ROOT_PASSWORD=pass -e MYSQL_USER=chamilo -e MYSQL_PASSWORD=chamilo -e MYSQL_DATABASE=chamilo -d mariadb
39-
docker run --link=mariadb:db --name chamilo -p 8080:80 -it chamilo/docker-chamilo
45+
docker run --link=mariadb:db --volumes-from=varwww --name chamilo -p 8080:80 -it chamilo/docker-chamilo
46+
# Change all configuration to point to /var/www2/chamilo/www and change the Chamilo config file (root_web)
4047
# configure Chamilo on this first container then take a snapshot
4148
docker commit -m "Live running Chamilo connected to host 'db' with existing database" {container-hash} docker-chamilo:live
42-
docker run --link=mariadb:db --name chamilo2 -p 8081:80 -it docker-chamilo:live
49+
docker run --link=mariadb:db --volumes-from=varwww --name chamilo2 -p 8081:80 -it docker-chamilo:live
4350
docker run --name lb --link=chamilo:w1 --link=chamilo4:w2 -e CHAMILO_1_PORT_80_TCP_ADDR=172.17.0.10 -e CHAMILO_2_PORT_80_TCP_ADDR=172.17.0.11 -e CHAMILO_HOSTNAME=docker.chamilo.net -e CHAMILO_PATH=/ -p 8082:80 -it jasonwyatt/nginx-loadbalancer
4451
```
4552

@@ -52,7 +59,7 @@ docker ps
5259
(to identify the hash of the image of the load balancer (lb))
5360

5461
```
55-
docker exec -i -t 87895b732246 bash
62+
docker exec -i -t {lb-container-hash} bash
5663
cd /etc/nginx/sites-available/
5764
vi proxy.conf
5865
```

0 commit comments

Comments
 (0)