Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

job-run will not start a container with a profile #318

Open
deimosian opened this issue Jan 23, 2025 · 0 comments
Open

job-run will not start a container with a profile #318

deimosian opened this issue Jan 23, 2025 · 0 comments

Comments

@deimosian
Copy link

This may be user error of some kind, but I put a profile tag on my certbot container because I don't want it running every time I down/up my compose stack. That seems to have prevented my Ofelia container from being able to start it on its weekly schedule.

If anyone has advice on how to start it anyway, perhaps activating the profile with Ofelia, that would be great.

Relevant part of compose file:

    container_name: cron
    image: mcuadros/ofelia:0.3
    depends_on:
      - web
    command: daemon --docker -f label=com.docker.compose.project=${COMPOSE_PROJECT_NAME}
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    labels:
      ofelia.enabled: "true"
      ofelia.job-run.cert-renew.schedule: "@weekly"
      ofelia.job-run.cert-renew.container: "cert"
  cert:
    container_name: cert
    image: certbot/dns-cloudflare
    profiles:
      - cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant