Skip to content

Commit 088cd19

Browse files
committed
Define mt-watcher container in common.yml.
1 parent 8d5e3ff commit 088cd19

3 files changed

Lines changed: 14 additions & 12 deletions

File tree

mt/cgi.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ services:
33
mt:
44
restart: always
55
command: "/usr/sbin/httpd -D FOREGROUND"
6+
7+
mt-watcher:
8+
command: "/bin/true"

mt/common.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,16 @@ services:
3838
command: apache2-foreground
3939

4040
mt-watcher:
41-
image: busybox
41+
build:
42+
context: mt-watcher
43+
working_dir: /var/www/cgi-bin/mt
44+
environment:
45+
PERL_FNS_NO_OPT: ${PERL_FNS_NO_OPT:-0}
46+
DISABLE_MT_WATCHER: ${DISABLE_MT_WATCHER:-0}
47+
volumes:
48+
- "${MT_HOME_PATH:-../../movabletype}:/var/www/cgi-bin/mt"
49+
- "./mt-watcher.pl:/usr/local/lib/mt/bin/mt-watcher.pl"
50+
- /var/run/docker.sock:/var/run/docker.sock
4251

4352
volumes:
4453
site:

mt/psgi.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,6 @@ services:
77
MT_PID_FILE_PATH: ${MT_PID_FILE_PATH:-/tmp/mt.psgi.pid}
88
volumes:
99
- "./plackup-mt:/usr/local/lib/mt/bin/plackup-mt"
10+
1011
mt-watcher:
11-
build:
12-
context: mt-watcher
13-
image: movabletype/mt-watcher
14-
working_dir: /var/www/cgi-bin/mt
1512
command: /usr/local/lib/mt/bin/mt-watcher.pl
16-
environment:
17-
PERL_FNS_NO_OPT: ${PERL_FNS_NO_OPT:-0}
18-
DISABLE_MT_WATCHER: ${DISABLE_MT_WATCHER:-0}
19-
volumes:
20-
- "${MT_HOME_PATH:-../../movabletype}:/var/www/cgi-bin/mt"
21-
- "./mt-watcher.pl:/usr/local/lib/mt/bin/mt-watcher.pl"
22-
- /var/run/docker.sock:/var/run/docker.sock

0 commit comments

Comments
 (0)