Browse Source

Improves ofelia documentation, changes job name for docker-compose.yml to test version. Comments out cantainer_name to avoid container conflicts with multiple instances.

master
Jonathan Rosenbaum 1 year ago
parent
commit
4d39814468
  1. 3
      README.md
  2. 16
      docker-compose.yml

3
README.md

@ -174,8 +174,7 @@ docker-compose.yml for Ofelia job scheduler
# https://github.com/mcuadros/ofelia # https://github.com/mcuadros/ofelia
# #
# When you add/change a cron job simply - # When you add/change a cron job simply -
# docker compose down # docker compose restart
# docker compose up -d
services: services:
ofelia: ofelia:

16
docker-compose.yml

@ -22,7 +22,7 @@
services: services:
redis: redis:
container_name: bikebikebike-redis # container_name: bikebikebike-redis
image: redis:6.2-alpine image: redis:6.2-alpine
ports: ports:
- "6379" - "6379"
@ -38,7 +38,7 @@ services:
# Run sidekiq as it's own process using the same image that bikbike uses! # Run sidekiq as it's own process using the same image that bikbike uses!
sidekiq: sidekiq:
image: bikebikebike image: bikebikebike
container_name: bikebikebike-sidekiq # container_name: bikebikebike-sidekiq
command: sidekiq -q production command: sidekiq -q production
environment: environment:
- REDIS_URL=redis://redis:6379 - REDIS_URL=redis://redis:6379
@ -61,7 +61,7 @@ services:
max-file: "3" max-file: "3"
db: db:
container_name: bikebikebike-db # container_name: bikebikebike-db
image: postgres:9.5 image: postgres:9.5
ports: ports:
- "5432" - "5432"
@ -81,7 +81,7 @@ services:
bikebike: bikebike:
build: . build: .
image: bikebikebike image: bikebikebike
container_name: bikebikebike # container_name: bikebikebike
networks: networks:
letsencrypt: letsencrypt:
default: default:
@ -114,10 +114,10 @@ services:
- db - db
labels: labels:
ofelia.enabled: "true" # in rss2email ofelia.enabled: "true" # in rss2email
ofelia.job-exec.bikebike-job.schedule: "@every 6h" ofelia.job-exec.bikebikebike-job.schedule: "@every 6h"
ofelia.job-exec.bikebike-job.container: "bikebikebike" ofelia.job-exec.bikebikebike-job.container: "bikebikebike"
ofelia.job-exec.bikebike-job.command: "/app/BikeBike/caniuse.js" ofelia.job-exec.bikebikebike-job.command: "/app/BikeBike/caniuse.js"
ofelia.job-exec.bikebike-job.user: "root:root" ofelia.job-exec.bikebikebike-job.user: "root:root"
restart: always restart: always
logging: logging:
driver: "json-file" driver: "json-file"

Loading…
Cancel
Save