Skip to content

Commit fd4ad83

Browse files
committed
Add cron service detail in docker-compose.yml
1 parent 6bcb32b commit fd4ad83

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/helper/service-utils.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,15 @@ function generate_global_docker_compose_yml( Filesystem $fs ) {
279279
'global-backend-network',
280280
],
281281
],
282+
[
283+
'name' => EE_CRON_SERVICE,
284+
'image' => 'easyengine/cron:' . $img_versions['easyengine/cron'],
285+
'restart' => 'always',
286+
'volumes' => [
287+
'/opt/easyengine/services/cron:/etc/ofelia:ro',
288+
'/var/run/docker.sock:/var/run/docker.sock:ro',
289+
],
290+
],
282291
];
283292

284293
Option::set( GLOBAL_DB, $password );

0 commit comments

Comments
 (0)