Skip to content

Instantly share code, notes, and snippets.

@x-yuri
Last active February 4, 2023 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x-yuri/d135bfabbe1b4798ad2fcfbca11a907c to your computer and use it in GitHub Desktop.
Save x-yuri/d135bfabbe1b4798ad2fcfbca11a907c to your computer and use it in GitHub Desktop.
docker + ofelia

docker + ofelia

docker-compose.yml:

services:
  ofelia:
    build: .
    command: daemon --config config.ini

Dockerfile:

FROM mcuadros/ofelia:v0.3.7
RUN set -x \
    && apk add --no-cache shadow \
    && useradd -m app
COPY config.ini .
USER app

config.ini:

[job-local "a"]
schedule = @every 5s
command = date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment