Skip to content

Commit

Permalink
fix: Correct coolify stop/start behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Guergeiro committed Sep 27, 2024
1 parent 34dca40 commit ccfc0fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/coolify/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
name: "Stop coolify containers every day at 4:40 AM"
minute: "40"
hour: "4"
job: "docker stop $(docker container ls -q -f 'name=coolify*')"
job: "docker compose -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml down"

- name: Start coolify containers every day at 5:00 AM
cron:
name: "Start coolify containers every day at 5:00 AM"
minute: "0"
hour: "5"
job: "docker start $(docker ps -q -f 'status=exited')"
job: "docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate"

0 comments on commit ccfc0fb

Please sign in to comment.