File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # # Site specific configuration - container names. Set in .yml file.
4
- webcont=moodle
5
- dbcont=moodledb
6
- dbtestcont=moodletestdb
3
+ # # Change to directory of where this script is located
4
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
5
+ cd $DIR ;
6
+
7
+ # # Site specific configuration - container id's for containers in this directory
8
+ webcont=" $( docker-compose ps -q moodle) "
9
+ dbcont=" $( docker-compose ps -q moodle-db) "
10
+ dbtestcont=" $( docker-compose ps -q moodle-test-db) "
7
11
8
12
for ARG in $*
9
13
do
Original file line number Diff line number Diff line change @@ -2,14 +2,12 @@ version: '3'
2
2
3
3
services :
4
4
moodle :
5
- container_name : moodle
6
5
build : ./moodle
7
6
ports :
8
7
- " 80:80"
9
8
volumes :
10
9
- ./siteroot:/siteroot
11
10
moodle-db :
12
- container_name : moodledb
13
11
image : postgres
14
12
restart : always
15
13
environment :
@@ -19,7 +17,6 @@ services:
19
17
volumes :
20
18
- ' moodledb:/var/lib/postgresql'
21
19
moodle-test-db :
22
- container_name : moodletestdb
23
20
image : postgres
24
21
restart : always
25
22
environment :
You can’t perform that action at this time.
0 commit comments