File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,19 @@ Now start your browser and load http://docker.chamilo.net.
34
34
35
35
If you want to use a more complex system with load balancing, you might want to try out the following suite of commands:
36
36
37
+ ```
38
+ docker run --name varwww -d ywarnier/varw
39
+ ```
40
+
41
+ This will provide a shared /var/www2 partition
42
+
37
43
```
38
44
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)
40
47
# configure Chamilo on this first container then take a snapshot
41
48
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
43
50
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
44
51
```
45
52
@@ -52,7 +59,7 @@ docker ps
52
59
(to identify the hash of the image of the load balancer (lb))
53
60
54
61
```
55
- docker exec -i -t 87895b732246 bash
62
+ docker exec -i -t {lb-container-hash} bash
56
63
cd /etc/nginx/sites-available/
57
64
vi proxy.conf
58
65
```
You can’t perform that action at this time.
0 commit comments