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
#
# When you add/change a cron job simply -
# docker compose down
# docker compose up -d
# docker compose restart
services:
ofelia:

16
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"

Loading…
Cancel
Save