Skip to content

Commit 79c2ad2

Browse files
committed
Update cron mounts
1 parent 24c1b26 commit 79c2ad2

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

cron/cron-runner.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ set -euxo pipefail
33

44
while true
55
do
6-
if test -f "/crm/config/Main.php"; then
7-
unique_key=$(grep application_unique_key /crm/config/Main.php | awk -F"'" '{print $2}')
6+
if test -f "/var/www/html/config/Main.php"; then
7+
unique_key=$(grep application_unique_key /var/www/html/config/Main.php | awk -F"'" '{print $2}')
88
wget --timeout=900 -qO- http://nginx/cron.php?app_key="${unique_key}"
99
fi
1010

docker-compose.yaml

+9-11
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,6 @@ services:
1212
target: /var/lib/mysql
1313
ports:
1414
- 3306:3306
15-
cron:
16-
build:
17-
context: ./cron
18-
deploy:
19-
restart_policy:
20-
condition: on-failure
21-
delay: 60s
22-
volumes:
23-
- type: volume
24-
source: crm_data
25-
target: /crm
2615
nginx:
2716
hostname: yeti
2817
build:
@@ -35,6 +24,15 @@ services:
3524
target: /var/www/html
3625
ports:
3726
- 80:80
27+
cron:
28+
build:
29+
context: ./cron
30+
deploy:
31+
restart_policy:
32+
condition: on-failure
33+
delay: 60s
34+
volumes_from:
35+
- nginx:ro
3836
php:
3937
build:
4038
context: .

0 commit comments

Comments
 (0)