From 4d398144688c1d640d890672c4d673cbaee5833a Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Sun, 23 Jul 2023 02:25:59 -0400 Subject: [PATCH] Improves ofelia documentation, changes job name for docker-compose.yml to test version. Comments out cantainer_name to avoid container conflicts with multiple instances. --- README.md | 3 +-- docker-compose.yml | 16 ++++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8e2f6ed..58e4a10 100644 --- a/README.md +++ b/README.md @@ -174,8 +174,7 @@ docker-compose.yml for Ofelia job scheduler # https://github.com/mcuadros/ofelia # # When you add/change a cron job simply - -# docker compose down -# docker compose up -d +# docker compose restart services: ofelia: diff --git a/docker-compose.yml b/docker-compose.yml index 49a2935..7907e08 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,7 @@ services: redis: - container_name: bikebikebike-redis + # container_name: bikebikebike-redis image: redis:6.2-alpine ports: - "6379" @@ -38,7 +38,7 @@ services: # Run sidekiq as it's own process using the same image that bikbike uses! sidekiq: image: bikebikebike - container_name: bikebikebike-sidekiq + # container_name: bikebikebike-sidekiq command: sidekiq -q production environment: - REDIS_URL=redis://redis:6379 @@ -61,7 +61,7 @@ services: max-file: "3" db: - container_name: bikebikebike-db + # container_name: bikebikebike-db image: postgres:9.5 ports: - "5432" @@ -81,7 +81,7 @@ services: bikebike: build: . image: bikebikebike - container_name: bikebikebike + # container_name: bikebikebike networks: letsencrypt: default: @@ -114,10 +114,10 @@ services: - db labels: ofelia.enabled: "true" # in rss2email - ofelia.job-exec.bikebike-job.schedule: "@every 6h" - ofelia.job-exec.bikebike-job.container: "bikebikebike" - ofelia.job-exec.bikebike-job.command: "/app/BikeBike/caniuse.js" - ofelia.job-exec.bikebike-job.user: "root:root" + ofelia.job-exec.bikebikebike-job.schedule: "@every 6h" + ofelia.job-exec.bikebikebike-job.container: "bikebikebike" + ofelia.job-exec.bikebikebike-job.command: "/app/BikeBike/caniuse.js" + ofelia.job-exec.bikebikebike-job.user: "root:root" restart: always logging: driver: "json-file"