Skip to content

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

Open
@deimosian

Description

@deimosian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions