Skip to content

Commit

Permalink
Merge pull request #92 from vonmaehlen/fix/example-missing-scheduler
Browse files Browse the repository at this point in the history
docs: add scheduler service to compose example
  • Loading branch information
shyim authored Jul 8, 2024
2 parents d526c10 + 1b2d11a commit cd7be61
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,23 @@ services:
deploy:
replicas: 3

scheduler:
image: local
restart: unless-stopped
build:
context: .
volumes:
- files:/var/www/html/files
- theme:/var/www/html/public/theme
- media:/var/www/html/public/media
- thumbnail:/var/www/html/public/thumbnail
- sitemap:/var/www/html/public/sitemap
depends_on:
init:
condition: service_completed_successfully
env_file: .app.env
entrypoint: [ "php", "bin/console", "scheduled-task:run" ]

volumes:
mysql-data:
files:
Expand Down

0 comments on commit cd7be61

Please sign in to comment.